pub struct DrawCommand {
    pub graphics_pipeline: Arc<GraphicsPipeline>,
    pub scissor: Scissor,
    pub viewport: Viewport,
    pub descriptor_set: Arc<dyn DescriptorSet + Send + Sync>,
    pub vertex_buffer: Arc<ImmutableBuffer<[Vertex]>>,
}
Expand description

A draw command that maps directly to the AutoCommandBufferBuilder::draw method. By returning DrawCommands, we can avoid consuming the entire AutoCommandBufferBuilder itself which might not always be available from APIs that wrap Vulkan.

Fields

graphics_pipeline: Arc<GraphicsPipeline>scissor: Scissorviewport: Viewportdescriptor_set: Arc<dyn DescriptorSet + Send + Sync>vertex_buffer: Arc<ImmutableBuffer<[Vertex]>>

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Builds a pointer to this type from a raw pointer.

Returns true if the size is suitable to store a type like this.

Returns the size of an individual element.

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.