Open shobomaru opened 1 week ago
If you're interested in a quick fix, you can use inline SPIR-V to use OpIsNan
directly
Indeed, by defining a new function as follows, we can pass the validation.
[[vk::ext_instruction(156)]]
bool alt_isnan(float v1);
RWStructuredBuffer
Description DXC generates an invalid SPIR-V
Steps to Reproduce
dxc -T cs_6_0 -spirv path/to/file.hlsl
HLSL code:
If we change the code as follows, the issue is not occurred.
Actual Behavior
Environment