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
16-bit native types were introduced in HLSL 2018 and SM 6.2, so we should enforce those requirements, or at least issue warnings for the language version. In older shader models these 16 bit integer types are disallowed and 16 bit float types are treated as 32-bits. The later part of this is already implemented.
AC
Validate that the enable 16 bit flag is used in only the correct circumstances.
The text was updated successfully, but these errors were encountered:
Previously, the clang compiler with the dxc driver would accept the
-enable-16bit-types flag without checking to see if the required
conditions are met for proper processing of the flag.
Specifically, -enable-16bit-types requires a shader model of at least
6.2 and an HLSL version of at least 2021.
This PR adds a validation check for these other options having the
required values, and emits an error if these constraints are not met.
Fixes#57876
---------
Co-authored-by: Damyan Pepper <damyanp@microsoft.com>
Co-authored-by: Chris B <cbieneman@microsoft.com>
16-bit native types were introduced in HLSL 2018 and SM 6.2, so we should enforce those requirements, or at least issue warnings for the language version. In older shader models these 16 bit integer types are disallowed and 16 bit float types are treated as 32-bits. The later part of this is already implemented.
AC
Validate that the enable 16 bit flag is used in only the correct circumstances.
16-bit native types were introduced in HLSL 2018 and SM 6.2, so we should enforce those requirements, or at least issue warnings for the language version. In older shader models these 16 bit integer types are disallowed and 16 bit float types are treated as 32-bits. The later part of this is already implemented.
AC
Validate that the enable 16 bit flag is used in only the correct circumstances.
The text was updated successfully, but these errors were encountered: