pub struct ShaderModuleDescriptor<'a> {
    pub label: Label<'a>,
    pub source: ShaderSource<'a>,
}
Expand description

Descriptor for use with Device::create_shader_module.

Corresponds to WebGPU GPUShaderModuleDescriptor.

Fields§

§label: Label<'a>

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

§source: ShaderSource<'a>

Source code for the shader.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.