Unverified Commit 6f10dccb authored by Joshua Batista's avatar Joshua Batista Committed by GitHub
Browse files

[HLSL] Add validation for the -enable-16bit-types option (#85340)



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: default avatarDamyan Pepper <damyanp@microsoft.com>
Co-authored-by: default avatarChris B <cbieneman@microsoft.com>
parent 6e58efac
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment