shader-slang / slang

Making it easier to work with shaders
MIT License
2.07k stars 178 forks source link

Print warning when operator<< shifting too much #4255

Closed jkwak-work closed 4 months ago

jkwak-work commented 4 months ago

Closes #3944

For the given type of the left side operand to operator<< is not big enough for the right side operand, print a warning that the result will be always zero.

sriramm-nv commented 4 months ago

looks good to me