Enum renderling_core::ObjectDraw
source · pub enum ObjectDraw<'a> {
Indexed {
index_buffer: BufferSlice<'a>,
index_format: IndexFormat,
index_range: Range<u32>,
base_vertex: i32,
},
Default {
vertex_range: Range<u32>,
},
}
Expand description
Draw parameters for a renderable object.
This roughly corresponds to wgpu::RenderPass::draw_indexed
and
wgpu::RenderPass::draw
.
Variants
Indexed
Default
Trait Implementations
sourceimpl<'a> Clone for ObjectDraw<'a>
impl<'a> Clone for ObjectDraw<'a>
sourcefn clone(&self) -> ObjectDraw<'a>
fn clone(&self) -> ObjectDraw<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl<'a> !RefUnwindSafe for ObjectDraw<'a>
impl<'a> Send for ObjectDraw<'a>
impl<'a> Sync for ObjectDraw<'a>
impl<'a> Unpin for ObjectDraw<'a>
impl<'a> !UnwindSafe for ObjectDraw<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more