pub struct ShaderDesc<'a> {
pub source: &'a str,
pub naga_module: Option<Module>,
}Fields§
§source: &'a strWGSL source code. Used for parsing when naga_module is None,
or as debug info (SPIR-V source maps, shader dumps) when a module is provided.
naga_module: Option<Module>Optional pre-built Naga IR module. When provided, source is skipped
for parsing and only used as debug info (if non-empty).
Auto Trait Implementations§
impl<'a> Freeze for ShaderDesc<'a>
impl<'a> RefUnwindSafe for ShaderDesc<'a>
impl<'a> Send for ShaderDesc<'a>
impl<'a> Sync for ShaderDesc<'a>
impl<'a> Unpin for ShaderDesc<'a>
impl<'a> UnsafeUnpin for ShaderDesc<'a>
impl<'a> UnwindSafe for ShaderDesc<'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