pub enum ShaderModule {
Raw(ShaderModule),
Intermediate {
naga_shader: NagaShader,
runtime_checks: ShaderRuntimeChecks,
},
}Available on
vulkan only.Variants§
Trait Implementations§
Source§impl Debug for ShaderModule
impl Debug for ShaderModule
Source§impl DynResource for ShaderModule
impl DynResource for ShaderModule
impl DynShaderModule for ShaderModule
Auto Trait Implementations§
impl Forget for ShaderModule
impl Freeze for ShaderModulewhere
&'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,
impl Move for ShaderModule
impl RefUnwindSafe for ShaderModulewhere
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 ShaderModulewhere
&'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 ShaderModulewhere
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 ShaderModulewhere
&'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 ShaderModulewhere
&'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,
impl UnwindSafe for ShaderModulewhere
&'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