InterlockedCompareStoreFloatBitwise
Description
Perform an atomic compare and store operation on dest.
Signature
void InterlockedCompareStoreFloatBitwise<T>( T dest, T compare_value, T value) where T : IAtomicable;
Generic Parameters
T: IAtomicable
The type of the value to perform the atomic operation on.
Parameters
dest : T
The value to perform the atomic operation on.
compare_value : T
The value to compare dest with.
value : T
The value to store into dest if the compare result is equal.
Remarks
When targeting HLSL, a call to this function will translate to a call to InterlockedCompareStoreFloatBitwise, which means the comparison is done as a bitwise comparison.
On SPIR-V (Vulkan), this function maps to OpAtomicCompareExchange.
On Metal and WGSL, this function is not available.
On CUDA, this function maps to atomicCAS.