pub enum ShaderModuleSource {
Naga(NagaShader),
Passthrough {
source: String,
},
}Available on
gles only.Variants§
Trait Implementations§
Auto Trait Implementations§
impl Forget for ShaderModuleSource
impl Freeze for ShaderModuleSourcewhere
&'static Module: Freeze,
Module: Freeze,
*const u8 is !null: Freeze,
PhantomData<TypeFlags>: Freeze,
PhantomData<FunctionInfo>: Freeze,
*const [TypeResolution] is !null: Freeze,
PhantomData<[TypeResolution]>: Freeze,
&'static str: Freeze,
String: Freeze,
PhantomData<u8>: Freeze,
impl Move for ShaderModuleSource
impl RefUnwindSafe for ShaderModuleSourcewhere
NonZero<u32>: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
Module: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
String: RefUnwindSafe,
impl Send for ShaderModuleSourcewhere
&'static Module: Send,
Module: Send,
RawVecInner: Send,
InternalBitFlags: Send,
InternalBitFlags: Send,
InternalBitFlags: Send,
NonZero<u32>: Send,
InternalBitFlags: Send,
InternalBitFlags: Send,
RawTable<usize>: Send,
InternalBitFlags: Send,
BoxRaw<str>: Send,
BoxRaw<[Box<str>; 2]>: Send,
InternalBitFlags: Send,
RawTable<(SamplingKey, ())>: Send,
BoxRaw<[GlobalUse]>: Send,
BoxRaw<[ExpressionInfo]>: Send,
RawTable<(Sampling, ())>: Send,
BoxRaw<[TypeResolution]>: Send,
&'static str: Send,
String: Send,
impl Sync for ShaderModuleSourcewhere
RawTable<usize>: Sync,
RawVecInner: Sync,
NonZero<u32>: Sync,
InternalBitFlags: Sync,
InternalBitFlags: Sync,
InternalBitFlags: Sync,
BoxRaw<str>: Sync,
BoxRaw<[Box<str>; 2]>: Sync,
BoxRaw<DocComments>: Sync,
Module: Sync,
InternalBitFlags: Sync,
InternalBitFlags: Sync,
InternalBitFlags: Sync,
InternalBitFlags: Sync,
RawTable<(SamplingKey, ())>: Sync,
BoxRaw<[GlobalUse]>: Sync,
BoxRaw<[ExpressionInfo]>: Sync,
RawTable<(Sampling, ())>: Sync,
BoxRaw<[TypeResolution]>: Sync,
String: Sync,
impl Unpin for ShaderModuleSourcewhere
&'static Module: Unpin,
Module: Unpin,
*const u8 is !null: Unpin,
InternalBitFlags: Unpin,
InternalBitFlags: Unpin,
InternalBitFlags: Unpin,
NonZero<u32>: Unpin,
InternalBitFlags: Unpin,
InternalBitFlags: Unpin,
InternalBitFlags: Unpin,
Box<str>: Unpin,
Box<[Box<str>; 2]>: Unpin,
InternalBitFlags: Unpin,
Box<[GlobalUse]>: Unpin,
Box<[ExpressionInfo]>: Unpin,
Box<[TypeResolution]>: Unpin,
&'static str: Unpin,
String: Unpin,
impl UnsafeUnpin for ShaderModuleSourcewhere
&'static Module: UnsafeUnpin,
Module: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<TypeFlags>: UnsafeUnpin,
PhantomData<FunctionInfo>: UnsafeUnpin,
*const [TypeResolution] is !null: UnsafeUnpin,
PhantomData<[TypeResolution]>: UnsafeUnpin,
&'static str: UnsafeUnpin,
String: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for ShaderModuleSourcewhere
&'static Module: UnwindSafe,
Module: UnwindSafe,
RawVecInner: UnwindSafe,
InternalBitFlags: UnwindSafe,
InternalBitFlags: UnwindSafe,
InternalBitFlags: UnwindSafe,
NonZero<u32>: UnwindSafe,
InternalBitFlags: UnwindSafe,
InternalBitFlags: UnwindSafe,
NonNull<u8>: UnwindSafe,
InternalBitFlags: UnwindSafe,
BoxRaw<str>: UnwindSafe,
BoxRaw<[Box<str>; 2]>: UnwindSafe,
InternalBitFlags: UnwindSafe,
BoxRaw<[GlobalUse]>: UnwindSafe,
BoxRaw<[ExpressionInfo]>: UnwindSafe,
BoxRaw<[TypeResolution]>: UnwindSafe,
&'static str: UnwindSafe,
String: 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