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§
pub 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: StringEntrypoint.
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.