|
|
|
|
|
by robmaister
2611 days ago
|
|
I'm not familiar with the specifics within gfx-hal, but it's most likely taking in SPIR-V and translating as needed. AFAIK DX12 still requires DXIL so it might be saving both SPIR-V and DXIL, or taking in HLSL and compiling/translating as needed. Microsoft has generally gotten a lot friendlier in the last decade, they have tools to compile HLSL down to SPIR-V, if you want to support everything including DX12 you'll probably be writing HLSL. Otherwise you can pick any language that compiles down to SPIR-V. https://github.com/Microsoft/ShaderConductor https://github.com/KhronosGroup/SPIRV-Cross |
|