pub struct ShaderModuleDesc<'a> {
pub label: &'static str,
pub wgsl: &'a str,
}Expand description
A shader module from WGSL source. WGSL is the single shader language; backends that need another form compile it themselves.
Fields§
§label: &'static strDebug label; also names the module in compile errors.
wgsl: &'a strThe WGSL source text.
Trait Implementations§
Source§impl<'a> Clone for ShaderModuleDesc<'a>
impl<'a> Clone for ShaderModuleDesc<'a>
impl<'a> Copy for ShaderModuleDesc<'a>
Auto Trait Implementations§
impl<'a> Freeze for ShaderModuleDesc<'a>
impl<'a> RefUnwindSafe for ShaderModuleDesc<'a>
impl<'a> Send for ShaderModuleDesc<'a>
impl<'a> Sync for ShaderModuleDesc<'a>
impl<'a> Unpin for ShaderModuleDesc<'a>
impl<'a> UnsafeUnpin for ShaderModuleDesc<'a>
impl<'a> UnwindSafe for ShaderModuleDesc<'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