microsoft/DirectXShaderCompiler
View on GitHub ↗ ★ 3,685 C++
This repo hosts the source for the DirectX Shader Compiler which is based on LLVM/Clang.
17 mentions on Hacker News by 16 people: 0 stories, 17 comments · first 2017-01-24 · latest 2025-11-24
20082026
-
…from it, to a lesser degree. There are important HLSL intrinsics that are vendor-dependent ( https://github.com/Microsoft/DirectXShaderCompiler/wiki/Wave... or https://github.com/NVIDIA/nvapi/blob/main/nvHLSLExtns.h ). Microsoft used to be…
comment by cyberax · 2025-11-24 · in Shaders: How to draw high fidelity graphics with just x and y coordinates -
The Microsoft HLSL compiler for dx12+ is based on LLVM and supports spir-v output https://github.com/microsoft/DirectXShaderCompiler Though my understanding is that it's a complete hackjob stuck on an old version of LLVM, and not in a…
comment by kimixa · 2024-11-17 · in C Compiler to SPIR-V -
On the latest release https://github.com/microsoft/DirectXShaderCompiler/releases/... There are "source code" files in zip and tar.gz Aren't those source code for those dlls?
comment by nextaccountic · 2024-02-11 · in Building the DirectX shader compiler better than Microsoft? -
Which part of dxil/dxc is proprietary exactly? Trying to make sense of the license barf at https://github.com/microsoft/DirectXShaderCompiler
comment by yazzku · 2024-02-10 · in Building the DirectX shader compiler better than Microsoft? -
No, it's C++, based on LLVM. https://github.com/microsoft/DirectXShaderCompiler Edit: apparently dxil.dll is not part of DXC (the classic move to make "open source" software dependent on external proprietary garbage, apparently.) But I'd…
comment by yazzku · 2024-02-10 · in Building the DirectX shader compiler better than Microsoft? -
…camp. Setting clear expectations that something will not be done is a nice bit of fresh air. [0] https://github.com/microsoft/DirectXShaderCompiler/issues/57...
comment by chrsig · 2024-02-10 · in Building the DirectX shader compiler better than Microsoft? -
Well... they are rewriting & upstreaming DXC to LLVM main ( https://github.com/microsoft/DirectXShaderCompiler/wiki/Cont... ) and want to kinda deprecate DXC. IIRC currently only compute shaders are supported but I may be very wrong.
comment by NekkoDroid · 2024-02-10 · in Building the DirectX shader compiler better than Microsoft? -
There's no need for transpilers these days, you can just compile HLSL to SPIR-V bytecode with dxc. https://github.com/microsoft/DirectXShaderCompiler
comment by TillE · 2024-01-10 · in Vcc – The Vulkan Clang Compiler -
…a pretty mature infrastructure; some very large companies have contributed to its development. [1]: https://github.com/microsoft/DirectXShaderCompiler [2]: https://clang.llvm.org/docs/HLSL/HLSLDocs.html [3]:…
comment by delta_p_delta_x · 2024-01-10 · in Vcc – The Vulkan Clang Compiler -
…GPGPU wouldn't have taken off in scientific computing. compiler defaults may just not be right. [1] https://github.com/Microsoft/DirectXShaderCompiler/blob/mast... [2] See: #pragma optionNV(fastmath off)
comment by Arelius · 2020-12-01 · in Ex Valve dev on CS:GO’s codebase -
…actually already has support from Microsoft. The HLSL DXC compiler can natively output SPIR-V: https://github.com/Microsoft/DirectXShaderCompiler/wiki/SPIR... So it's not implausible that there's a future world here where DX13 or DX14 use…
comment by kllrnohj · 2020-04-17 · in A Taste of GPU Compute [video] -
…Microsoft's own DirectX HLSL compiler[0] supports SPIR-V as a target in addition to DXIL. [0]: https://github.com/microsoft/DirectXShaderCompiler
comment by tambre · 2020-01-28 · in Rocket League left behind on macOS and Linux due to DirectX 11 shift -
…narg.com/doc/view/1.0.39.1/linux/spirv_tool... Microsoft actually has an HLSL to SPIR-V compiler too. https://github.com/microsoft/DirectXShaderCompiler/blob/mast...
comment by pdpi · 2019-10-22 · in RLSL: a Rust to SPIR-V Compiler -
…from MS produces another intermediate format (which I just found out seems to be even open source: https://github.com/Microsoft/DirectXShaderCompiler ).
comment by coffeeaddicted · 2017-11-02 · in The Book of Shaders -
…open-sourced a Clang-based HLSL compiler that could be used as a front-end for a Vulkan backend. https://github.com/Microsoft/DirectXShaderCompiler https://blogs.msdn.microsoft.com/directx/2017/01/23/new-dire...
comment by jamesfmilne · 2017-03-19 · in Star Citizen developers intend to drop DirectX support and only support Vulkan -
And it's fixed! =] https://github.com/Microsoft/DirectXShaderCompiler/pull/33 https://github.com/Microsoft/DirectXShaderCompiler/issues/30
comment by chandlerc1024 · 2017-01-25 · in New DirectX Shader Compiler Based on Clang/LLVM Open-Sourced -
…pretending to relicense it and changing the copyright string) when that's 100% not okay: https://github.com/Microsoft/DirectXShaderCompiler/blob/mast... I'm sure it was a script, but this needs to be fixed, stat. Sadly, not even the first…
comment by DannyBee · 2017-01-24 · in New DirectX Shader Compiler Based on Clang/LLVM Open-Sourced