Hacker GitHub

← All repos

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

Mentions per year 17 mentions · busiest year 2024 (8)
20082026
  1. …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…
  2. 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
  3. 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?
  4. Which part of dxil/dxc is proprietary exactly? Trying to make sense of the license barf at https://github.com/microsoft/DirectXShaderCompiler
  5. 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…
  6. …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...
  7. 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.
  8. 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
  9. …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
  10. …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
  11. …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]
  12. …Microsoft's own DirectX HLSL compiler[0] supports SPIR-V as a target in addition to DXIL. [0]: https://github.com/microsoft/DirectXShaderCompiler
  13. …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
  14. …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
  15. …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...
  16. And it's fixed! =] https://github.com/Microsoft/DirectXShaderCompiler/pull/33 https://github.com/Microsoft/DirectXShaderCompiler/issues/30
  17. …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…