Struct conrod_vulkano::DrawCommand
source · [−]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
DrawCommand
s, 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: Scissor
viewport: Viewport
descriptor_set: Arc<dyn DescriptorSet + Send + Sync>
vertex_buffer: Arc<ImmutableBuffer<[Vertex]>>
Auto Trait Implementations
impl !RefUnwindSafe for DrawCommand
impl Send for DrawCommand
impl Sync for DrawCommand
impl Unpin for DrawCommand
impl !UnwindSafe for DrawCommand
Blanket Implementations
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.