procedural-3d-engine/shaders
2025-04-27 12:41:07 +02:00
..
glsl Recompile shaders for mesh shading sample with updated shader compilers 2025-03-13 18:07:31 +01:00
hlsl Recompile shaders for mesh shading sample with updated shader compilers 2025-03-13 18:07:31 +01:00
slang Add slang shader for mesh shader sample 2025-04-27 12:41:07 +02:00
README.md Set api base line to 1.1 when using slang and enable SPIRV 1.4 2025-04-23 19:32:14 +02:00

Shaders

This folder contains the shaders used by the samples. Source files are available in GLSL, HLSL and slang and also come with precompiled SPIR-V files that are consumed by the samples. To recompile shaders you can use the compileshaders.py scripts in the respective folders or any other means that can generate Vulkan SPIR-V from GLSL, HLSL or slang. One such option is this extension for Visual Studio.

Note that not all samples may come with all shading language variants. So some samples that have GLSL source files might not come with HLSL and/or slang source files.

A note for using slang shaders: These require a different SPIR-V environment than glsl/hlsl. When selecting slang shaders, the base requirement for all samples is raised to at least Vulkan 1.1 with the SPIRV 1.4 extension.