We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HLSL allows explicit casting between layout compatible types. For example:
struct XYZ { float X, Y, Z; }; XYZ xyz = ...; float3 f3 = (float3)xyz; xyz = (XYZ)f3; struct S { int i; float f; }; struct OtherS { int i; float f; }; S s =...; OtherS o = (OtherS)s;
Related: #100614
The text was updated successfully, but these errors were encountered:
spall
Successfully merging a pull request may close this issue.
HLSL allows explicit casting between layout compatible types. For example:
Related: #100614
The text was updated successfully, but these errors were encountered: