Skip to content

Changed to use DXC instead of SharpDX for HLSL compilation#102

Open
OpenPachinko wants to merge 2 commits into
mellinoe:masterfrom
OpenPachinko:master
Open

Changed to use DXC instead of SharpDX for HLSL compilation#102
OpenPachinko wants to merge 2 commits into
mellinoe:masterfrom
OpenPachinko:master

Conversation

@OpenPachinko

@OpenPachinko OpenPachinko commented May 19, 2020

Copy link
Copy Markdown

Changed to use DirectX Shader Compiler(DXC) instead of SharpDX for HLSL compilation.

SharpDX.D3DCompiler was for Windows only.
With the change to dxc, ShaderGen now works on Linux and MacOS.

https://github.com/microsoft/DirectXShaderCompiler

@Saalvage

Copy link
Copy Markdown

DXC only supports compiling to DXIL, while DX11 (which e.g. Veldrid uses) only supports DXBC, so this would break compatibility with DX11 for binary HLSL!

(I have no idea why Microsoft designed this stuff this way..)

However, having cross compilation to DXBC isn't entirely out of the picture.
This exists: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14253 which might at some point allow for compiling SPIR-V to DXBC..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants