wgpu

Type Alias ShaderModuleDescriptorSpirV

Source
pub type ShaderModuleDescriptorSpirV<'a> = ShaderModuleDescriptorSpirV<'a, Label<'a>>;
Expand description

Descriptor for a shader module given by SPIR-V binary.

This type is unique to the Rust API of wgpu. In the WebGPU specification, only WGSL source code strings are accepted.

Aliased Type§

struct ShaderModuleDescriptorSpirV<'a> {
    pub label: Option<&'a str>,
    pub source: Cow<'a, [u32]>,
}

Fields§

§label: Option<&'a str>

Debug label of the shader module. This will show up in graphics debuggers for easy identification.

§source: Cow<'a, [u32]>

Binary SPIR-V data, in 4-byte words.

Trait Implementations

Source§

impl<'a, L> Clone for ShaderModuleDescriptorSpirV<'a, L>
where L: Clone,

Source§

fn clone(&self) -> ShaderModuleDescriptorSpirV<'a, L>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a, L> Debug for ShaderModuleDescriptorSpirV<'a, L>
where L: Debug,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more