Performs an atomic XOR on the value.
void InterlockedXor( in UINT dest, in UINT value, out UINT original_value );
- dest [in]
The destination address.
- value [in]
The input value.
- original_value [out]
The original value.
This function does not return a value.
This operation can be performed only on INT or UINT typed resources and shared memory variables. There are three possible uses for this function. The first is when R is a shared memory variable type. In this case, the function performs an atomic XOR with the value of the shared memory register referenced by dest. The second scenario is when R is a resource variable type. In this scenario, the function performs an atomic XOR with the value of the resource location referenced by dest. Finally, the third scenario is when R is a local variable type. In this scenario, the function reduces to an XOR of the values of dest and value. The result of the operation replaces the value in dest. The overloaded function has an additional output variable which will be set to the original value of dest. This overloaded operation is available only when R is readable and writable.
This function is supported in the following types of shaders: