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.
Trait Implementations§
Source§impl<'a> Clone for ShaderModuleDescriptor<'a>
impl<'a> Clone for ShaderModuleDescriptor<'a>
Auto Trait Implementations§
impl<'a> Forget for ShaderModuleDescriptor<'a>
impl<'a> Freeze for ShaderModuleDescriptor<'a>
impl<'a> Move for ShaderModuleDescriptor<'a>
impl<'a> RefUnwindSafe for ShaderModuleDescriptor<'a>where
Vec<u32>: RefUnwindSafe,
String: RefUnwindSafe,
NonZero<u32>: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
Module: RefUnwindSafe,
impl<'a> Send for ShaderModuleDescriptor<'a>
impl<'a> Sync for ShaderModuleDescriptor<'a>
impl<'a> Unpin for ShaderModuleDescriptor<'a>
impl<'a> UnsafeUnpin for ShaderModuleDescriptor<'a>where
&'a str: UnsafeUnpin,
&'a [u32]: UnsafeUnpin,
Vec<u32>: UnsafeUnpin,
String: UnsafeUnpin,
&'a [(&'a str, &'a str)]: UnsafeUnpin,
&'static Module: UnsafeUnpin,
Module: UnsafeUnpin,
PhantomData<&'a ()>: UnsafeUnpin,
impl<'a> UnwindSafe for ShaderModuleDescriptor<'a>where
&'a str: UnwindSafe,
&'a [u32]: UnwindSafe,
Vec<u32>: UnwindSafe,
String: UnwindSafe,
&'a [(&'a str, &'a str)]: UnwindSafe,
&'static Module: UnwindSafe,
Module: UnwindSafe,
&'a (): 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