Microsoft releases open-source DirectX Shader Compiler

At GDC last year, Microsoft pulled back the curtain on the graphics technologies coming with Shader Model 6.0. As it turns out, the company still had some surprises up its sleeve. Microsoft has released the DirectX Shader Compiler as an open-source project, built on the popular Clang/LLVM toolchain.

Broadly speaking, shaders are programs that modify colors and shapes to add effects to rendered images or polygon meshes. Modern games employ a large number of shaders, and they're often targeted for optimization in graphics driver releases. HLSL is a shader language that's been a part of the DirectX API since DirectX 9. Now that Microsoft has made the HLSL compiler open-source, developers not only get unfettered access to the compiler itself, but also the freedom to modify it and contribute ideas and code.

Clang was released under an open-source license in 2007, and companies including Apple, Microsoft, Google, Intel, and AMD have all contributed to it. Since the ecosystem for Clang/LLVM is large and well-established, Microsoft anticipates that developers will have the toolchain, documentation, and community they need to dig in to HLSL 6.0 rather quickly. Making this project open-source is also likely to help Microsoft push the adoption of HLSL 6.0, too.

The project can now be cloned from Github, and the team anticipates that it'll be finalized this spring.

Comments closed
    • Chrispy_
    • 3 years ago

    Unsure if this is a genuinely good thing for the gaming industry or a devious ploy to bring more developers into the Microsoft Way before closing the trap again.

    Oh cynicism, why do you have to be so right most of the time? I want to believe this time, really I do, but Microsoft is more about SaaS than ever before, so the concept of “a free lunch” from Microsoft has more alarm bells ringing than usual.

    • jensend
    • 3 years ago

    MIT-licensed, too, and thus compatible with just about any other license (unlike e.g. MS-PL). Good.

    • DragonDaddyBear
    • 3 years ago

    I’ve seen this news elsewhere but this this is the first time anyone bothered to write in just a few sentences in layman terms just what this means. Thank you.

      • morphine
      • 3 years ago

      You’re welcome. Mr. Born did a fine job.

        • juzz86
        • 3 years ago

        Born Supremacy?

    • NTMBK
    • 3 years ago

    If it’s based on Clang, I wonder if devs will start implementing their own optimization passes?

    • chuckula
    • 3 years ago

    I think the wine project might have interest in this development, even if they don’t directly adopt the compiler.

      • derFunkenstein
      • 3 years ago

      Speaking of WINE: [url<][/url<]

Pin It on Pinterest

Share This