RWByteAddressBuffer.InterlockedAddF16¶
Description¶
Perform a 16-bit floating point atomic add operation at byteAddress.
Signature¶
void RWByteAddressBuffer.InterlockedAddF16( uint byteAddress, half value, out half originalValue);
Parameters¶
byteAddress : uint¶
The address at which to perform the atomic add operation.
value : half¶
The value to add to the value at byteAddress.
originalValue : half¶
The original value at byteAddress before the add operation.
Remarks¶
For SPIR-V, this function maps to OpAtomicFAdd and requires SPV_EXT_shader_atomic_float16_add extension.
For HLSL, this function translates to an NVAPI call due to lack of native HLSL intrinsic for floating point atomic add. For CUDA, this function maps to atomicAdd.
Availability and Requirements¶
Defined for the following targets:
hlsl¶
Available in all stages.
cuda¶
Available in all stages.
spirv¶
Available in all stages.
Requires capabilities: SPV_KHR_non_semantic_info, SPV_GOOGLE_user_type, spvDerivativeControl, spvImageQuery, spvImageGatherExtended, spvSparseResidency, spvMinLod, spvFragmentFullyCoveredEXT.