RWByteAddressBuffer.InterlockedCompareStore64
Description
Perform a 64-bit integer atomic compare-and-store operation at byteAddress.
Signature
void RWByteAddressBuffer.InterlockedCompareStore64<T>( uint byteAddress, T compareValue, T value) where T : __BuiltinInt64Type;
Generic Parameters
T: __BuiltinInt64Type
Parameters
byteAddress : uint
The address at which to perform the atomic store operation.
compareValue : T
The value to compare to the value at byteAddress.
value : T
The value to store at byteAddress if the the value at address is equal to compareValue.
Remarks
For SPIR-V, this function maps to OpAtomicCompareExchange. For HLSL, this function translates to InterlockedCompareStore64 and requires shader model 6.6. For CUDA, this function maps to atomicCAS.
Availability and Requirements
Defined for the following targets:
hlsl
Available in all stages.
glsl
Available in all stages.
cuda
Available in all stages.
spirv
Available in all stages.
Requires capability: spvInt64Atomics
.