Trait bevy::render::render_phase::PhaseItem
[−]pub trait PhaseItem: 'static + Send + Sync {
type SortKey: Ord;
fn sort_key(&self) -> Self::SortKey;
fn draw_function(&self) -> DrawFunctionId;
}
Expand description
An item which will be drawn to the screen. A phase item should be queued up for rendering
during the RenderStage::Queue
stage.
Afterwards it will be sorted and rendered automatically in the
RenderStage::PhaseSort
stage and
RenderStage::Render
stage, respectively.
Required Associated Types
Required Methods
Determines the order in which the items are drawn during the corresponding RenderPhase
.
fn draw_function(&self) -> DrawFunctionId
fn draw_function(&self) -> DrawFunctionId
Specifies the Draw
function used to render the item.