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,
impl<'a, L> Clone for ShaderModuleDescriptorMsl<'a, L>where
L: Clone,
Source§fn clone(&self) -> ShaderModuleDescriptorMsl<'a, L>
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)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more