pub enum ShaderInput<'a> {
Naga(NagaShader),
MetalLib {
file: &'a [u8],
num_workgroups: HashMap<String, (u32, u32, u32)>,
},
Msl {
shader: &'a str,
num_workgroups: HashMap<String, (u32, u32, u32)>,
},
SpirV(&'a [u32]),
Dxil {
shader: &'a [u8],
},
Hlsl {
shader: &'a str,
},
Glsl {
shader: &'a str,
},
}Expand description
Shader input.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Forget for ShaderInput<'a>
impl<'a> Freeze for ShaderInput<'a>where
&'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,
&'a [u8]: Freeze,
PhantomData<(String, (u32, u32, u32))>: Freeze,
&'a str: Freeze,
&'a [u32]: Freeze,
impl<'a> Move for ShaderInput<'a>
impl<'a> RefUnwindSafe for ShaderInput<'a>where
NonZero<u32>: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
Module: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
String: RefUnwindSafe,
impl<'a> Send for ShaderInput<'a>where
&'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,
&'a [u8]: Send,
RawTable<(String, (u32, u32, u32))>: Send,
&'a str: Send,
&'a [u32]: Send,
impl<'a> Sync for ShaderInput<'a>where
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,
RawTable<(String, (u32, u32, u32))>: Sync,
impl<'a> Unpin for ShaderInput<'a>where
&'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,
&'a [u8]: Unpin,
&'a str: Unpin,
&'a [u32]: Unpin,
impl<'a> UnsafeUnpin for ShaderInput<'a>where
&'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,
&'a [u8]: UnsafeUnpin,
PhantomData<(String, (u32, u32, u32))>: UnsafeUnpin,
&'a str: UnsafeUnpin,
&'a [u32]: UnsafeUnpin,
impl<'a> UnwindSafe for ShaderInput<'a>where
&'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,
&'a [u8]: UnwindSafe,
&'a str: UnwindSafe,
&'a [u32]: 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