pub enum ShaderModuleDescriptorExtension {
DawnShaderModuleSPIRVOptionsDescriptor(DawnShaderModuleSPIRVOptionsDescriptor),
ShaderModuleCompilationOptions(ShaderModuleCompilationOptions),
ShaderSourceSPIRV(ShaderSourceSPIRV),
ShaderSourceWGSL(ShaderSourceWGSL),
}Variants§
DawnShaderModuleSPIRVOptionsDescriptor(DawnShaderModuleSPIRVOptionsDescriptor)
ShaderModuleCompilationOptions(ShaderModuleCompilationOptions)
ShaderSourceSPIRV(ShaderSourceSPIRV)
ShaderSourceWGSL(ShaderSourceWGSL)
Trait Implementations§
Source§impl From<DawnShaderModuleSPIRVOptionsDescriptor> for ShaderModuleDescriptorExtension
impl From<DawnShaderModuleSPIRVOptionsDescriptor> for ShaderModuleDescriptorExtension
Source§fn from(ext: DawnShaderModuleSPIRVOptionsDescriptor) -> Self
fn from(ext: DawnShaderModuleSPIRVOptionsDescriptor) -> Self
Converts to this type from the input type.
Source§impl From<ShaderModuleCompilationOptions> for ShaderModuleDescriptorExtension
impl From<ShaderModuleCompilationOptions> for ShaderModuleDescriptorExtension
Source§fn from(ext: ShaderModuleCompilationOptions) -> Self
fn from(ext: ShaderModuleCompilationOptions) -> Self
Converts to this type from the input type.
Source§impl From<ShaderSourceSPIRV> for ShaderModuleDescriptorExtension
impl From<ShaderSourceSPIRV> for ShaderModuleDescriptorExtension
Source§fn from(ext: ShaderSourceSPIRV) -> Self
fn from(ext: ShaderSourceSPIRV) -> Self
Converts to this type from the input type.
Source§impl From<ShaderSourceWGSL> for ShaderModuleDescriptorExtension
impl From<ShaderSourceWGSL> for ShaderModuleDescriptorExtension
Source§fn from(ext: ShaderSourceWGSL) -> Self
fn from(ext: ShaderSourceWGSL) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ShaderModuleDescriptorExtension
impl RefUnwindSafe for ShaderModuleDescriptorExtension
impl Send for ShaderModuleDescriptorExtension
impl Sync for ShaderModuleDescriptorExtension
impl Unpin for ShaderModuleDescriptorExtension
impl UnsafeUnpin for ShaderModuleDescriptorExtension
impl UnwindSafe for ShaderModuleDescriptorExtension
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