pub struct ShaderSource {
pub wgsl: &'static WgslShaderSource,
pub name: &'static str,
pub attributes: &'static [AttributeInfo],
pub instance_attributes: &'static [AttributeInfo],
pub textures: &'static [TextureInfo],
}Expand description
A complete specialisation: WGSL plus the attributes,
instanceAttributes and textures tables.
Fields§
§wgsl: &'static WgslShaderSource§name: &'static str§attributes: &'static [AttributeInfo]§instance_attributes: &'static [AttributeInfo]§textures: &'static [TextureInfo]Trait Implementations§
Auto Trait Implementations§
impl Forget for ShaderSource
impl Freeze for ShaderSource
impl RefUnwindSafe for ShaderSource
impl Send for ShaderSource
impl Sync for ShaderSource
impl Unpin for ShaderSource
impl UnsafeUnpin for ShaderSource
impl UnwindSafe for ShaderSource
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