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
If we choose Option 1, this task is to add bool overloads for intrinsic where it makes sense to call them with bool values, and properly codegen those as if bool was converted to `int.
Option 2: New HLSL Rules
The spec PR posted above suggests treating bool effectively as lower than the lowest rank of integer type. A slight variation is that we could treat it as promotable to int.
The text was updated successfully, but these errors were encountered:
For this change we've decided to follow C rules, so the next step here will be to audit the existing functions in HLSL.h and add appropriate boolean overloads for methods.
We have two options to consider here:
-or-
Option 1: C Rules
If we choose Option 1, this task is to add
bool
overloads for intrinsic where it makes sense to call them with bool values, and properly codegen those as ifbool
was converted to `int.Option 2: New HLSL Rules
The spec PR posted above suggests treating
bool
effectively as lower than the lowest rank of integer type. A slight variation is that we could treat it as promotable toint
.The text was updated successfully, but these errors were encountered: