pub struct CustomShapeBatch {
pub start_instance: u32,
pub instance_count: u32,
pub sides: u32,
pub additive: bool,
pub thick_outline: bool,
}Expand description
One dispatch unit: a contiguous run of instances in the storage
buffer that belong to the same shape and share sides + blend mode.
Fields§
§start_instance: u32§instance_count: u32§sides: u32Effective sides for the draw call’s vertex count: sides * 3
triangle-list vertices per instance. Clamped to [3, MAX_SIDES].
additive: booltrue → additive blend pipeline, false → alpha.
thick_outline: booltrue → also dispatch the LineStrip outline pass for this batch
using the same instance range.
Trait Implementations§
Source§impl Clone for CustomShapeBatch
impl Clone for CustomShapeBatch
Source§fn clone(&self) -> CustomShapeBatch
fn clone(&self) -> CustomShapeBatch
Returns a duplicate of the value. Read more
1.0.0 · 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 CustomShapeBatch
impl Debug for CustomShapeBatch
impl Copy for CustomShapeBatch
Auto Trait Implementations§
impl Freeze for CustomShapeBatch
impl RefUnwindSafe for CustomShapeBatch
impl Send for CustomShapeBatch
impl Sync for CustomShapeBatch
impl Unpin for CustomShapeBatch
impl UnwindSafe for CustomShapeBatch
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more