pub struct SpriteBatchConfig {
pub initial_capacity: usize,
pub max_batch_size: usize,
pub enable_z_sorting: bool,
pub enable_batching: bool,
}Expand description
Configuration for sprite batch rendering.
Fields§
§initial_capacity: usizeInitial capacity for vertex buffer (number of sprites).
max_batch_size: usizeMaximum number of sprites per batch before automatic flush.
enable_z_sorting: boolEnable Z-layer sorting (disable for UI layers that don’t need depth).
enable_batching: boolEnable automatic batching by texture (disable for debugging).
Trait Implementations§
Source§impl Clone for SpriteBatchConfig
impl Clone for SpriteBatchConfig
Source§fn clone(&self) -> SpriteBatchConfig
fn clone(&self) -> SpriteBatchConfig
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 SpriteBatchConfig
impl Debug for SpriteBatchConfig
Source§impl Default for SpriteBatchConfig
impl Default for SpriteBatchConfig
Source§fn default() -> SpriteBatchConfig
fn default() -> SpriteBatchConfig
Returns the “default value” for a type. Read more
Source§impl PartialEq for SpriteBatchConfig
impl PartialEq for SpriteBatchConfig
impl Copy for SpriteBatchConfig
impl StructuralPartialEq for SpriteBatchConfig
Auto Trait Implementations§
impl Freeze for SpriteBatchConfig
impl RefUnwindSafe for SpriteBatchConfig
impl Send for SpriteBatchConfig
impl Sync for SpriteBatchConfig
impl Unpin for SpriteBatchConfig
impl UnsafeUnpin for SpriteBatchConfig
impl UnwindSafe for SpriteBatchConfig
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<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
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 moreSource§impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
fn into_sample(self) -> T
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().