pub struct Draw<'a> {
pub pipeline: &'a DrawPipeline,
pub params: &'a [f32],
pub vertices: BufferBinding<'a>,
pub indices: &'a Buffer,
pub index_count: u32,
pub texture: &'a Texture,
pub texture2: &'a Texture,
pub texture3: &'a Texture,
pub texture4: &'a Texture,
}Fields§
§pipeline: &'a DrawPipeline§params: &'a [f32]§vertices: BufferBinding<'a>§indices: &'a Buffer§index_count: u32§texture: &'a Texture§texture2: &'a TextureBound at binding 4 (shadow maps); pass any texture when unused.
texture3: &'a TextureBound at binding 5 (environment maps); pass any texture when unused.
texture4: &'a TextureBound at binding 6 (prefiltered environment); any texture when unused.
Auto Trait Implementations§
impl<'a> Forget for Draw<'a>
impl<'a> Freeze for Draw<'a>
impl<'a> Move for Draw<'a>
impl<'a> RefUnwindSafe for Draw<'a>
impl<'a> Send for Draw<'a>
impl<'a> Sync for Draw<'a>
impl<'a> Unpin for Draw<'a>
impl<'a> UnsafeUnpin for Draw<'a>
impl<'a> UnwindSafe for Draw<'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