Hi, we're doing a slightly weird thing, which is we're including the SPIR-V Header in our HLSL code to make the writing on SPIR-V intrinsics easier (don't need to remember the opcodes)
However HLSL doesn't support global operator overloads, so we need a define similar to SPV_ENABLE_UTILITY_CODE (although a negative one so backwards compatibility it preserved)
alternative is #ifndef __HLSL_VERSION which checks for the HLSL compiler.
PR incoming.
Hi, we're doing a slightly weird thing, which is we're including the SPIR-V Header in our HLSL code to make the writing on SPIR-V intrinsics easier (don't need to remember the opcodes)
However HLSL doesn't support global operator overloads, so we need a define similar to
SPV_ENABLE_UTILITY_CODE(although a negative one so backwards compatibility it preserved)alternative is
#ifndef __HLSL_VERSIONwhich checks for the HLSL compiler.PR incoming.