Performs a guaranteed atomic xor.
void InterlockedXor( in R dest, in T value, out T original_value );
- dest [in]
The destination address.
- value [in]
The input value.
- original_value [out]
Optional. The original input value.
This function does not return a value.
This operation can only be performed on int or uint typed resources and shared memory variables. There are two 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 of value to 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 XORof value to the resource location referenced by dest. The overloaded function has an additional output variable which will be set to the original value of dest. This overloaded operation is only available when R is readable and writable.
This function is supported in the following shader models.
|Shader Model 5 and higher shader models||yes|
This function is supported in the following types of shaders: