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> Freeze for ShaderModuleSource<'a>
impl<'a> RefUnwindSafe for ShaderModuleSource<'a>
impl<'a> Send for ShaderModuleSource<'a>
impl<'a> Sync for ShaderModuleSource<'a>
impl<'a> Unpin for ShaderModuleSource<'a>
impl<'a> UnwindSafe for ShaderModuleSource<'a>
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