shader_to_spirv usage
shader_to_spirv crate provides very easy way to create a SPIR-V's output.
But it's still in development could be bugs and some species of issues. If you found one of them, please, report or make PR! Always are welcome.
Supported Shader Languages
- WGSL
- GLSL
- HLSL
Examples
let vs_shader: = new
.unwrap;
let fs_shader: = new
.unwrap;
Also, you can do like this:
let vs_shader: = new
.with_shader_type
.unwrap;