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
I noticed this difference when working on my own (mostly) compatible library.
This is different than the System.Math and hlsl definition where they always return an integer type.
Any particular reason why this change is done?
The text was updated successfully, but these errors were encountered:
This may have been a mistake if the return type is different from the HLSL version. Usually, I prefer to return the same type as the input for functions like this if there's a reasonable chance that someone would use the returned value as a part of the computation. So for instance, if you wanted to do x * sign(x) or something similar.
Are you running into a problem due to the fact that the return type is different from the other versions?
I noticed this difference when working on my own (mostly) compatible library.
This is different than the System.Math and hlsl definition where they always return an integer type.
Any particular reason why this change is done?
The text was updated successfully, but these errors were encountered: