pub enum CreateShaderModuleDescriptorPassthrough<'a, L> {
SpirV(ShaderModuleDescriptorSpirV<'a, L>),
Msl(ShaderModuleDescriptorMsl<'a, L>),
}
Expand description
Descriptor for creating a shader module.
This type is unique to the Rust API of wgpu
. In the WebGPU specification,
only WGSL source code strings are accepted.
Variants§
SpirV(ShaderModuleDescriptorSpirV<'a, L>)
Passthrough for SPIR-V binaries.
Msl(ShaderModuleDescriptorMsl<'a, L>)
Passthrough for MSL source code.
Implementations§
Source§impl<'a, L> CreateShaderModuleDescriptorPassthrough<'a, L>
impl<'a, L> CreateShaderModuleDescriptorPassthrough<'a, L>
Trait Implementations§
Source§impl<'a, L: Clone> Clone for CreateShaderModuleDescriptorPassthrough<'a, L>
impl<'a, L: Clone> Clone for CreateShaderModuleDescriptorPassthrough<'a, L>
Source§fn clone(&self) -> CreateShaderModuleDescriptorPassthrough<'a, L>
fn clone(&self) -> CreateShaderModuleDescriptorPassthrough<'a, L>
Returns a duplicate 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, L> Freeze for CreateShaderModuleDescriptorPassthrough<'a, L>where
L: Freeze,
impl<'a, L> RefUnwindSafe for CreateShaderModuleDescriptorPassthrough<'a, L>where
L: RefUnwindSafe,
impl<'a, L> Send for CreateShaderModuleDescriptorPassthrough<'a, L>where
L: Send,
impl<'a, L> Sync for CreateShaderModuleDescriptorPassthrough<'a, L>where
L: Sync,
impl<'a, L> Unpin for CreateShaderModuleDescriptorPassthrough<'a, L>where
L: Unpin,
impl<'a, L> UnwindSafe for CreateShaderModuleDescriptorPassthrough<'a, L>where
L: 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