Struct wgpu::ShaderModuleDescriptorSpirV
source · pub struct ShaderModuleDescriptorSpirV<'a> {
pub label: Label<'a>,
pub source: Cow<'a, [u32]>,
}
Expand description
Descriptor for a shader module given by SPIR-V binary, for use with
Device::create_shader_module_spirv
.
This type is unique to the Rust API of wgpu
. In the WebGPU specification,
only WGSL source code strings are accepted.
Fields§
§label: Label<'a>
Debug label of the shader module. This will show up in graphics debuggers for easy identification.
source: Cow<'a, [u32]>
Binary SPIR-V data, in 4-byte words.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ShaderModuleDescriptorSpirV<'a>
impl<'a> RefUnwindSafe for ShaderModuleDescriptorSpirV<'a>
impl<'a> Send for ShaderModuleDescriptorSpirV<'a>
impl<'a> Sync for ShaderModuleDescriptorSpirV<'a>
impl<'a> Unpin for ShaderModuleDescriptorSpirV<'a>
impl<'a> UnwindSafe for ShaderModuleDescriptorSpirV<'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