microsoft / DirectXTK12

The DirectX Tool Kit (aka DirectXTK12) is a collection of helper classes for writing DirectX 12 code in C++
https://walbourn.github.io/directx-tool-kit-for-directx-12/
MIT License
1.44k stars 369 forks source link

Enable HLSL 2021 language model for DXC on Xbox #186

Closed walbourn closed 9 months ago

walbourn commented 9 months ago

Per this blog post there is a new HLSL language syntax supported by DXC. This will eventually become the default, so we explicitly opt into it for the toolkit shaders for Xbox.

For all Windows SDKs prior to 22621, the -HV 2021 switch results in "unknown version". As such, we don't use it yet for PC.

Also updated minimum guards for GDK versions (June 2021 for GDK, March 2022 for GDXK)