You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
In an attempt to minimize branching in our HLSL 2021 shader code, we have been converting boolean operators to use the and intrinsic from HLSL 2021 that doesn't short circuit. However, when nesting two calls to and, we get the following error: fatal error: generated SPIR-V is invalid: Expected both operands to be of Result Type: LogicalAnd
Description
In an attempt to minimize branching in our HLSL 2021 shader code, we have been converting boolean operators to use the
and
intrinsic from HLSL 2021 that doesn't short circuit. However, when nesting two calls toand
, we get the following error:fatal error: generated SPIR-V is invalid: Expected both operands to be of Result Type: LogicalAnd
Steps to Reproduce
https://shader-playground.timjones.io/a2afd625eb79aac130756befae206296
https://godbolt.org/z/vfn3Kxc7W
Environment
The text was updated successfully, but these errors were encountered: