DXC Shader Compilation and Shader Model 6 Support
The following is intended for informational purposes only, and may not be incorporated into any contract. No purchasing decisions should be made based on the following materials. Unity is not committing to deliver any functionality, features or code. The development, timing and release of all products, functionality and features are at the sole discretion of Unity, and are subject to change.
If you have accepted to use functional cookies and logged in using your Unity ID at the top right of the page, then sharing feedback is as simple as clicking a card below, selecting a topic’s importance, adding your point of view, and submitting. If you prefer not to accept functional cookies or log in, you will be prompted to enter an email address and validate it, so we know how to reach out when the topic evolves. For more information read the Feedback and privacy terms.
The experimental DXC shader compiler backend has been available since 2021.2, albeit with various limitations, most noticeably lack of support when targeting DX11 and GLES. For more information, see the original forum announcement:
In order to officially support a range of Shader Model 6 features, and to generally improve the Editor authoring experience, we plan to officially support the DirectX Shader Compiler in order to supplement (or entirely replace) the existing FXC shader compilation path currently in use.
In addition, DXC would allow maintaining better debuggability compared to the existing shader compilation pipeline, especially when targeting non-DX platforms. DXC could also provide faster shader compilation time (compared to FXC) in Editor, generally reducing the project iteration and build times.
Expected Outcome:
- The DXC shader compilation path is officially supported on a range of capable platforms.
- When utilizing the DXC shader compiler, a collection of SM6 features are supported when targeting capable platforms.