glsl2spv.md 592 B


outline: deep

GLSL/HLSL to SPIR-V

We can use utils.glsl2spv rules to compile GLSL/HLSL shaders to SPIR-V.

GLSL to SPIR-V

HLSL to SPIR-V

We can also use utils.hlsl2spv rule to compile HLSL to SPIR-V.

Bin2obj Mode

By default, the rule may use bin2c to embed the SPV data. We can switch to bin2obj mode for better performance with large shaders: