molgfx-gpu 0.1.2

The backend-agnostic GPU hardware abstraction: device, queue, encoder and surface traits.
Documentation
1
2
3
4
5
6
7
8
9
10
11
//! Shader module descriptors.

/// A shader module from WGSL source. WGSL is the single shader language;
/// backends that need another form compile it themselves.
#[derive(Clone, Copy, Debug)]
pub struct ShaderModuleDesc<'a> {
    /// Debug label; also names the module in compile errors.
    pub label: &'static str,
    /// The WGSL source text.
    pub wgsl: &'a str,
}