Struct bevy::render::draw::Draw[]

pub struct Draw {
    pub render_commands: Vec<RenderCommand, Global>,
}

A component that indicates how to draw an entity.

Fields

render_commands: Vec<RenderCommand, Global>

Implementations

impl Draw

pub fn clear_render_commands(&mut self)

pub fn set_pipeline(&mut self, pipeline: &Handle<PipelineDescriptor>)

pub fn set_vertex_buffer(&mut self, slot: u32, buffer: BufferId, offset: u64)

pub fn set_index_buffer(
    &mut self,
    buffer: BufferId,
    offset: u64,
    index_format: IndexFormat
)

pub fn set_bind_group(&mut self, index: u32, bind_group: &BindGroup)

pub fn draw_indexed(
    &mut self,
    indices: Range<u32>,
    base_vertex: i32,
    instances: Range<u32>
)

pub fn draw(&mut self, vertices: Range<u32>, instances: Range<u32>)

pub fn render_command(&mut self, render_command: RenderCommand)

Trait Implementations

impl Clone for Draw

impl Debug for Draw

impl Default for Draw

impl GetTypeRegistration for Draw

impl Reflect for Draw

impl Struct for Draw

Auto Trait Implementations

impl RefUnwindSafe for Draw

impl Send for Draw

impl Sync for Draw

impl Unpin for Draw

impl UnwindSafe for Draw

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CloneAny for T where
    T: Any + Clone

impl<T> Component for T where
    T: 'static + Send + Sync

impl<T> Downcast for T where
    T: Any

impl<T> Downcast<T> for T

impl<T> DowncastSync for T where
    T: Any + Send + Sync

impl<T> From<T> for T[src]

impl<T> FromWorld for T where
    T: Default

impl<S> GetField for S where
    S: Struct

impl<T> GetPath for T where
    T: Reflect

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> TypeData for T where
    T: 'static + Send + Sync + Clone

impl<T> Upcast<T> for T

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,