wgpu

Type Alias ShaderModuleDescriptorMsl

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

Descriptor for a shader module given by Metal MSL source.

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

Aliased Type§

struct ShaderModuleDescriptorMsl<'a> {
    pub entry_point: String,
    pub label: Option<&'a str>,
    pub num_workgroups: (u32, u32, u32),
    pub source: Cow<'a, str>,
}

Fields§

§entry_point: String

Entrypoint.

§label: Option<&'a str>

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

§num_workgroups: (u32, u32, u32)

Number of workgroups in each dimension x, y and z.

§source: Cow<'a, str>

Shader MSL source.

Trait Implementations

Source§

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

Source§

fn clone(&self) -> ShaderModuleDescriptorMsl<'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 ShaderModuleDescriptorMsl<'a, L>
where L: Debug,

Source§

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

Formats the value using the given formatter. Read more