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
Many HLSL shaders call unary math operations with integers. To minimize disruptions at the source level we should implement additional integer overloads for unary floating-point math operations that take integers and explicitly convert them to float.
These should be enabled in HLSL 202x, but we should consider disabling them in 202y.
Add int overloads which cast the various ints to a float and call the
float builtin.
These overloads are conditional on hlsl version 202x or earlier.
Add tests and puts tests in own files, including some of the tests added
for double overloads.
Closes#128229
Many HLSL shaders call unary math operations with integers. To minimize disruptions at the source level we should implement additional integer overloads for unary floating-point math operations that take integers and explicitly convert them to
float
.These should be enabled in HLSL 202x, but we should consider disabling them in 202y.
Some macros:
The text was updated successfully, but these errors were encountered: