Struct vulkano::command_buffer::std::dispatch::DispatchCommand
[−]
[src]
pub struct DispatchCommand<'a, L, Pl, S, Pc> where L: StdCommandsList, Pl: PipelineLayout, S: TrackedDescriptorSetsCollection, Pc: 'a {
// some fields omitted
}Wraps around a commands list and adds a dispatch command at the end of it.
Methods
impl<'a, L, Pl, S, Pc> DispatchCommand<'a, L, Pl, S, Pc> where L: StdCommandsList + OutsideRenderPass, Pl: PipelineLayout, S: TrackedDescriptorSetsCollection, Pc: 'a[src]
fn new(previous: L, pipeline: Arc<ComputePipeline<Pl>>, sets: S, dimensions: [u32; 3], push_constants: &'a Pc) -> DispatchCommand<'a, L, Pl, S, Pc>
See the documentation of the dispatch method.
Trait Implementations
impl<'a, L, Pl, S, Pc> StdCommandsList for DispatchCommand<'a, L, Pl, S, Pc> where L: StdCommandsList, Pl: PipelineLayout, S: TrackedDescriptorSetsCollection, Pc: 'a[src]
type Pool = L::Pool
The type of the pool that will be used to create the command buffer.
type Output = DispatchCommandCb<L::Output, Pl, S>
The type of the command buffer that will be generated.
fn num_commands(&self) -> usize
Returns the number of commands in the commands list. Read more
fn check_queue_validity(&self, queue: QueueFamily) -> Result<(), ()>
Checks whether the command can be executed on the given queue family.
fn is_compute_pipeline_bound<OPl>(&self, pipeline: &Arc<ComputePipeline<OPl>>) -> bool
Returns true if the given compute pipeline is currently binded in the commands list.
fn is_graphics_pipeline_bound<Pv, OPl, Prp>(&self, pipeline: &Arc<GraphicsPipeline<Pv, OPl, Prp>>) -> bool
Returns true if the given graphics pipeline is currently binded in the commands list.
fn buildable_state(&self) -> bool
Returns true if the command buffer can be built. This function should always return true, except when we're building a primary command buffer that is inside a render pass. Read more
unsafe fn raw_build<I, F>(self, additional_elements: F, barriers: I, final_barrier: PipelineBarrierBuilder) -> Self::Output where F: FnOnce(&mut UnsafeCommandBufferBuilder<L::Pool>), I: Iterator<Item=(usize, PipelineBarrierBuilder)>
Turns the commands list into a command buffer. Read more
fn update_buffer<'a, B, D: ?Sized>(self, buffer: B, data: &'a D) -> UpdateCommand<'a, Self, B, D> where Self: Sized + OutsideRenderPass, B: TrackedBuffer, D: Copy + 'static
Adds a command that writes the content of a buffer. Read more
fn fill_buffer<B>(self, buffer: B, data: u32) -> FillCommand<Self, B> where Self: Sized + OutsideRenderPass, B: TrackedBuffer
Adds a command that writes the content of a buffer.
fn dispatch<'a, Pl, S, Pc>(self, pipeline: Arc<ComputePipeline<Pl>>, sets: S, dimensions: [u32; 3], push_constants: &'a Pc) -> DispatchCommand<'a, Self, Pl, S, Pc> where Self: Sized + StdCommandsList + OutsideRenderPass, Pl: PipelineLayout, S: TrackedDescriptorSetsCollection, Pc: 'a
Adds a command that executes a compute shader. Read more
fn begin_render_pass<F, C>(self, framebuffer: F, secondary: bool, clear_values: C) -> BeginRenderPassCommand<Self, F::RenderPass, F> where Self: Sized + OutsideRenderPass, F: Framebuffer, F::RenderPass: RenderPass + RenderPassClearValues<C>
Adds a command that starts a render pass. Read more
fn next_subpass(self, secondary: bool) -> NextSubpassCommand<Self> where Self: Sized + InsideRenderPass
Adds a command that jumps to the next subpass of the current render pass.
fn end_render_pass(self) -> EndRenderPassCommand<Self> where Self: Sized + InsideRenderPass
Adds a command that ends the current render pass. Read more
fn draw<'a, Pv, Pl, Prp, S, Pc, V>(self, pipeline: Arc<GraphicsPipeline<Pv, Pl, Prp>>, dynamic: &DynamicState, vertices: V, sets: S, push_constants: &'a Pc) -> DrawCommand<'a, Self, Pv, Pl, Prp, S, Pc> where Self: Sized + StdCommandsList + InsideRenderPass, Pl: PipelineLayout, S: TrackedDescriptorSetsCollection, Pc: 'a, Pv: Source<V>
Adds a command that draws. Read more
fn build(self) -> Self::Output where Self: Sized
Turns the commands list into a command buffer that can be submitted.
impl<'a, L, Pl, S, Pc> ResourcesStates for DispatchCommand<'a, L, Pl, S, Pc> where L: StdCommandsList, Pl: PipelineLayout, S: TrackedDescriptorSetsCollection, Pc: 'a[src]
unsafe fn extract_buffer_state<Ob>(&mut self, buffer: &Ob) -> Option<Ob::CommandListState> where Ob: TrackedBuffer
Returns the state of a buffer, or None if the buffer hasn't been used yet. Read more
unsafe fn extract_image_state<I>(&mut self, image: &I) -> Option<I::CommandListState> where I: TrackedImage
Returns the state of an image, or None if the image hasn't been used yet. Read more