pub struct ShadowDrawCmd {
pub model_bg: BindGroupId,
pub model_offset: u32,
pub vertex_buffer: BufferId,
pub index_buffer: BufferId,
pub index_count: u32,
pub index_format: IndexFormat,
}Expand description
Pre-collected draw command for one mesh within a shadow pass.
Fields§
§model_bg: BindGroupIdBind group bound at slot 1 carrying the model uniforms (with a dynamic offset to address this mesh’s slot in the model ring).
model_offset: u32Dynamic offset into the model ring buffer.
vertex_buffer: BufferIdVertex buffer to draw from.
index_buffer: BufferIdIndex buffer to draw from.
index_count: u32Index count to issue.
index_format: IndexFormatIndex format (Uint16 / Uint32).
Trait Implementations§
Source§impl Clone for ShadowDrawCmd
impl Clone for ShadowDrawCmd
Source§fn clone(&self) -> ShadowDrawCmd
fn clone(&self) -> ShadowDrawCmd
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ShadowDrawCmd
impl Debug for ShadowDrawCmd
impl Copy for ShadowDrawCmd
Auto Trait Implementations§
impl Freeze for ShadowDrawCmd
impl RefUnwindSafe for ShadowDrawCmd
impl Send for ShadowDrawCmd
impl Sync for ShadowDrawCmd
impl Unpin for ShadowDrawCmd
impl UnsafeUnpin for ShadowDrawCmd
impl UnwindSafe for ShadowDrawCmd
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