Function demo_vk::graphics::vulkan::compile_slang
source · pub fn compile_slang(
ctx: &VulkanContext,
shader: impl AsRef<Path>,
) -> Result<ShaderModule>Expand description
Compiles the shader file into usable SPIRV.
This method invokes slangc in a subprocess and therefore expects slangc
to be present in the system PATH.
§Params
- [shader] - The filesystem path to the shader’s source.