[][src]Function hotglsl::compile

pub fn compile(glsl_path: &Path) -> Result<Vec<u8>, CompileError>

Compile the GLSL file at the given path to SPIR-V.

The shader type is inferred from the path extension.

Returns a Vec<u8> containing raw SPIR-V bytes.