diff options
-rw-r--r-- | spirv_msl.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/spirv_msl.cpp b/spirv_msl.cpp index dd80fbbc..36a128ba 100644 --- a/spirv_msl.cpp +++ b/spirv_msl.cpp @@ -9413,6 +9413,9 @@ void CompilerMSL::emit_atomic_func_op(uint32_t result_type, uint32_t result_id, else if (opcode == OpAtomicSMax || opcode == OpAtomicSMin) expected_type = to_signed_basetype(type.width); + if (type.width == 64) + SPIRV_CROSS_THROW("MSL currently does not support 64-bit atomics."); + auto remapped_type = type; remapped_type.basetype = expected_type; |