pub struct BatchKey {
pub texture_id: Option<u64>,
pub pipeline: PipelineKind,
pub blend: BlendMode,
}Expand description
The minimal state that forces a draw-call boundary.
Commands that share the same BatchKey and are adjacent in the sorted
order can be merged into a single DrawBatch.
Fields§
§texture_id: Option<u64>Optional texture ID (None for untextured commands).
pipeline: PipelineKindRequired shader pipeline.
blend: BlendModeRequired blend mode.
Trait Implementations§
Source§impl Ord for BatchKey
impl Ord for BatchKey
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for BatchKey
impl PartialOrd for BatchKey
impl Copy for BatchKey
impl Eq for BatchKey
impl StructuralPartialEq for BatchKey
Auto Trait Implementations§
impl Freeze for BatchKey
impl RefUnwindSafe for BatchKey
impl Send for BatchKey
impl Sync for BatchKey
impl Unpin for BatchKey
impl UnsafeUnpin for BatchKey
impl UnwindSafe for BatchKey
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.