Struct wgpu::ShaderModuleDescriptor
source · 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> 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