Function hassle_rs::utils::compile_hlsl
source · pub fn compile_hlsl(
source_name: &str,
shader_text: &str,
entry_point: &str,
target_profile: &str,
args: &Vec<&str>,
defines: &Vec<(&str, Option<&str>)>
) -> Result<Vec<u32>, String>
Expand description
Helper function to directly compile a HLSL shader to an intermediate language,
this function expects dxcompiler.dll
to be available in the current
executable environment.
Specify -spirv as one of the args
to compile to SPIR-V