molgfx_gpu/descriptors/shader.rs
1//! Shader module descriptors.
2
3/// A shader module from WGSL source. WGSL is the single shader language;
4/// backends that need another form compile it themselves.
5#[derive(Clone, Copy, Debug)]
6pub struct ShaderModuleDesc<'a> {
7 /// Debug label; also names the module in compile errors.
8 pub label: &'static str,
9 /// The WGSL source text.
10 pub wgsl: &'a str,
11}