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>
Source§fn clone(&self) -> ShaderModuleDescriptor<'a>
fn clone(&self) -> ShaderModuleDescriptor<'a>
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> Freeze for ShaderModuleDescriptor<'a>
impl<'a> RefUnwindSafe for ShaderModuleDescriptor<'a>
impl<'a> Send for ShaderModuleDescriptor<'a>
impl<'a> Sync for ShaderModuleDescriptor<'a>
impl<'a> Unpin for ShaderModuleDescriptor<'a>
impl<'a> UnwindSafe for ShaderModuleDescriptor<'a>
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