pub struct ShaderModuleDescriptorMsl<'a, L> {
pub entry_point: String,
pub label: L,
pub num_workgroups: (u32, u32, u32),
pub source: Cow<'a, str>,
}
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.
Fields§
§entry_point: String
Entrypoint.
label: L
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> Clone for ShaderModuleDescriptorMsl<'a, L>
impl<'a, L: Clone> Clone for ShaderModuleDescriptorMsl<'a, L>
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 moreAuto Trait Implementations§
impl<'a, L> Freeze for ShaderModuleDescriptorMsl<'a, L>where
L: Freeze,
impl<'a, L> RefUnwindSafe for ShaderModuleDescriptorMsl<'a, L>where
L: RefUnwindSafe,
impl<'a, L> Send for ShaderModuleDescriptorMsl<'a, L>where
L: Send,
impl<'a, L> Sync for ShaderModuleDescriptorMsl<'a, L>where
L: Sync,
impl<'a, L> Unpin for ShaderModuleDescriptorMsl<'a, L>where
L: Unpin,
impl<'a, L> UnwindSafe for ShaderModuleDescriptorMsl<'a, L>where
L: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more