Struct conrod_vulkano::DrawCommand
source · pub struct DrawCommand {
pub graphics_pipeline: Arc<dyn GraphicsPipelineAbstract + Send + Sync>,
pub dynamic_state: DynamicState,
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<dyn GraphicsPipelineAbstract + Send + Sync>
§dynamic_state: DynamicState
§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§
source§impl<T> Content for T
impl<T> Content for T
source§fn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
fn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
Builds a pointer to this type from a raw pointer.
source§fn is_size_suitable(size: usize) -> bool
fn is_size_suitable(size: usize) -> bool
Returns true if the size is suitable to store a type like this.
source§fn indiv_size() -> usize
fn indiv_size() -> usize
Returns the size of an individual element.