Skip to content

Latest commit

 

History

History

readme.md

Compiler

This extension can convert HLSL/GLSL to DXIL/SPIRV.

Feature

  • HLSL to SPIRV ✔
  • GLSL to SPIRV ✔
  • HLSL to DXIL ✔
  • GLSL to DXIL

Usage

Just full CompileOption and compile shader code.

Notice

If you want to use root constant(push_constant), you need add [[vk::push_constant]] to your HLSL code before ConstantBuffer.

For example, you have a root constant at resgister(b0, space0).

[[vk::push_constant]] ConstantBuffer<T> NAME : register(b0, space0);

We use DirectXShaderCompiler to compile HLSL to DXIL. If you want to use this extension, you will need dxcompiler.dll and dxil.dll. (It is not installed in my windows 10 at least).

ThirdParties

We recommend you to use vcpkg to install these third-parties.