Struct wgpu::ShaderModule
source · pub struct ShaderModule { /* private fields */ }
Expand description
Handle to a compiled shader module.
A ShaderModule
represents a compiled shader module on the GPU. It can be created by passing
source code to Device::create_shader_module
or valid SPIR-V binary to
Device::create_shader_module_spirv
. Shader modules are used to define programmable stages
of a pipeline.
Corresponds to WebGPU GPUShaderModule
.
Implementations§
source§impl ShaderModule
impl ShaderModule
Trait Implementations§
source§impl Debug for ShaderModule
impl Debug for ShaderModule
Auto Trait Implementations§
impl !RefUnwindSafe for ShaderModule
impl Send for ShaderModule
impl Sync for ShaderModule
impl Unpin for ShaderModule
impl !UnwindSafe for ShaderModule
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