pub enum ShaderModuleSource<'a> {
Wgsl(Cow<'a, str>),
Glsl(Cow<'a, str>, Options),
SpirV(Cow<'a, [u32]>, Options),
Naga(Cow<'static, Module>),
// some variants omitted
}Variants§
Wgsl(Cow<'a, str>)
Available on crate feature
wgsl only.Glsl(Cow<'a, str>, Options)
Available on crate feature
glsl only.SpirV(Cow<'a, [u32]>, Options)
Available on crate feature
spirv only.Naga(Cow<'static, Module>)
Auto Trait Implementations§
impl<'a> Forget for ShaderModuleSource<'a>
impl<'a> Freeze for ShaderModuleSource<'a>
impl<'a> Move for ShaderModuleSource<'a>
impl<'a> RefUnwindSafe for ShaderModuleSource<'a>where
String: RefUnwindSafe,
Vec<u32>: RefUnwindSafe,
NonZero<u32>: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
Module: RefUnwindSafe,
impl<'a> Send for ShaderModuleSource<'a>
impl<'a> Sync for ShaderModuleSource<'a>
impl<'a> Unpin for ShaderModuleSource<'a>
impl<'a> UnsafeUnpin for ShaderModuleSource<'a>where
&'a str: UnsafeUnpin,
String: UnsafeUnpin,
PhantomData<fn() -> FxHasher>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<(String, String)>: UnsafeUnpin,
&'a [u32]: UnsafeUnpin,
Vec<u32>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
&'static Module: UnsafeUnpin,
Module: UnsafeUnpin,
PhantomData<&'a ()>: UnsafeUnpin,
impl<'a> UnwindSafe for ShaderModuleSource<'a>where
&'a str: UnwindSafe,
String: UnwindSafe,
NonNull<u8>: UnwindSafe,
RawVecInner: UnwindSafe,
&'a [u32]: UnwindSafe,
Vec<u32>: UnwindSafe,
&'static Module: UnwindSafe,
Module: UnwindSafe,
&'a (): 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