Trait PhaseItemBatchSetKey

Source
pub trait PhaseItemBatchSetKey:
    Clone
    + Send
    + Sync
    + PartialEq
    + Eq
    + Ord
    + Hash {
    // Required method
    fn indexed(&self) -> bool;
}
Expand description

A key used to combine batches into batch sets.

A batch set is a set of meshes that can potentially be multi-drawn together.

Required Methods§

Source

fn indexed(&self) -> bool

Returns true if this batch set key describes indexed meshes or false if it describes non-indexed meshes.

Bevy uses this in order to determine which kind of indirect draw parameters to use, if indirect drawing is enabled.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§