HLSL: Add explicit error for floating point atomics.

This commit is contained in:
Hans-Kristian Arntzen 2023-06-26 12:41:21 +02:00
parent 9f463569c4
commit aafcc207ea

View File

@ -6056,6 +6056,11 @@ void CompilerHLSL::emit_instruction(const Instruction &instruction)
break;
}
case OpAtomicFAddEXT:
case OpAtomicFMinEXT:
case OpAtomicFMaxEXT:
SPIRV_CROSS_THROW("Floating-point atomics are not supported in HLSL.");
case OpAtomicCompareExchange:
case OpAtomicExchange:
case OpAtomicISub: