Struct gfx_backend_empty::CommandBuffer [−][src]
pub struct CommandBuffer;
Expand description
Dummy command buffer, which ignores all the calls.
Trait Implementations
unsafe fn begin(
&mut self,
_: CommandBufferFlags,
_: CommandBufferInheritanceInfo<'_, Backend>
)
unsafe fn begin(
&mut self,
_: CommandBufferFlags,
_: CommandBufferInheritanceInfo<'_, Backend>
)
Begins recording commands to a command buffer.
Empties the command buffer, optionally releasing all resources from the commands that have been submitted. Read more
unsafe fn pipeline_barrier<'a, T>(
&mut self,
_: Range<PipelineStage>,
_: Dependencies,
_: T
) where
T: Iterator<Item = Barrier<'a, Backend>>,
unsafe fn pipeline_barrier<'a, T>(
&mut self,
_: Range<PipelineStage>,
_: Dependencies,
_: T
) where
T: Iterator<Item = Barrier<'a, Backend>>,
Inserts a synchronization dependency between pipeline stages in the command buffer. Read more
Fill a buffer with the given u32
value.
Copy data from the given slice into a buffer.
Clears an image to the given color/depth/stencil.
Takes an iterator of attachments and an iterator of rect’s, and clears the given rect’s for each attachment. Read more
“Resolves” a multisampled image, converting it into a non-multisampled image. Takes an iterator of regions to apply the resolution to. Read more
unsafe fn blit_image<T>(
&mut self,
_: &Image,
_: Layout,
_: &Image,
_: Layout,
_: Filter,
_: T
)
unsafe fn blit_image<T>(
&mut self,
_: &Image,
_: Layout,
_: &Image,
_: Layout,
_: Filter,
_: T
)
Copies regions from the source to destination image, applying scaling, filtering and potentially format conversion. Read more
Bind the index buffer view, making it the “current” one that draw commands will operate on. Read more
Bind the vertex buffer set, making it the “current” one that draw commands will operate on. Read more
Set the scissor rectangles for the rasterizer. Read more
Sets the stencil reference value for comparison operations and store operations. Will be used on the LHS of stencil compare ops and as store value when the store op is Reference. Read more
Sets the stencil read mask.
Sets the stencil write mask.
Set the blend constant values dynamically.
Set the depth bounds test values dynamically.
Set the line width dynamically. Read more
Set the depth bias dynamically.
unsafe fn begin_render_pass<'a, T>(
&mut self,
_: &(),
_: &(),
_: Rect,
_: T,
_: SubpassContents
) where
T: Iterator<Item = RenderAttachmentInfo<'a, Backend>>,
unsafe fn begin_render_pass<'a, T>(
&mut self,
_: &(),
_: &(),
_: Rect,
_: T,
_: SubpassContents
) where
T: Iterator<Item = RenderAttachmentInfo<'a, Backend>>,
Begins recording commands for a render pass on the given framebuffer. Read more
Steps to the next subpass in the current render pass.
Finishes recording commands for the current a render pass.
Bind a graphics pipeline. Read more
unsafe fn bind_graphics_descriptor_sets<'a, I, J>(
&mut self,
_: &(),
_: usize,
_: I,
_: J
) where
I: Iterator<Item = &'a DescriptorSet>,
unsafe fn bind_graphics_descriptor_sets<'a, I, J>(
&mut self,
_: &(),
_: usize,
_: I,
_: J
) where
I: Iterator<Item = &'a DescriptorSet>,
Takes an iterator of graphics DescriptorSet
’s, and binds them to the command buffer.
first_set
is the index that the first descriptor is mapped to in the command buffer. Read more
Bind a compute pipeline. Read more
unsafe fn bind_compute_descriptor_sets<'a, I, J>(
&mut self,
_: &(),
_: usize,
_: I,
_: J
) where
I: Iterator<Item = &'a DescriptorSet>,
unsafe fn bind_compute_descriptor_sets<'a, I, J>(
&mut self,
_: &(),
_: usize,
_: I,
_: J
) where
I: Iterator<Item = &'a DescriptorSet>,
Takes an iterator of compute DescriptorSet
’s, and binds them to the command buffer,
first_set
is the index that the first descriptor is mapped to in the command buffer. Read more
Execute a workgroup in the compute pipeline. x
, y
and z
are the
number of local workgroups to dispatch along each “axis”; a total of x
y
z
local workgroups will be created. Read more
Works similarly to dispatch()
but reads parameters from the given
buffer during execution. Read more
Adds a command to copy regions from the source to destination buffer.
Copies regions from the source to the destination images, which
have the given layouts. No format conversion is done; the source and destination
Layout
’s must have the same sized image formats (such as Rgba8Unorm
and
R32
, both of which are 32 bits). Read more
Copies regions from the source buffer to the destination image.
Copies regions from the source image to the destination buffer.
Performs a non-indexed drawing operation, fetching vertex attributes
from the currently bound vertex buffers. It performs instanced
drawing, drawing instances.len()
times with an instanceIndex
starting with the start of the range. Read more
unsafe fn draw_indexed(
&mut self,
_: Range<IndexCount>,
_: VertexOffset,
_: Range<InstanceCount>
)
unsafe fn draw_indexed(
&mut self,
_: Range<IndexCount>,
_: VertexOffset,
_: Range<InstanceCount>
)
Performs indexed drawing, drawing the range of indices
given by the current index buffer and any bound vertex buffers.
base_vertex
specifies the vertex offset corresponding to index 0.
That is, the offset into the vertex buffer is (current_index + base_vertex)
Read more
Functions identically to draw()
, except the parameters are read
from the given buffer, starting at offset
and increasing stride
bytes with each successive draw. Performs draw_count
draws total.
draw_count
may be zero. Read more
Like draw_indirect()
, this does indexed drawing a la draw_indexed()
but
reads the draw parameters out of the given buffer. Read more
Functions identically to draw_indirect()
, except the amount of draw
calls are specified by the u32 in count_buffer
at count_buffer_offset
.
There is a limit of max_draw_count
invocations. Read more
Functions identically to draw_indexed_indirect()
, except the amount of draw
calls are specified by the u32 in count_buffer
at count_buffer_offset
.
There is a limit of max_draw_count
invocations. Read more
Dispatches task_count
of threads. Similar to compute dispatch.
Indirect version of draw_mesh_tasks
. Analogous to draw_indirect
, but for mesh shaders.
Like draw_mesh_tasks_indirect
except that the draw count is read by
the device from a buffer during execution. The command will read an
unsigned 32-bit integer from count_buffer
located at count_buffer_offset
and use this as the draw count. Read more
Signals an event once all specified stages of the shader pipeline have completed.
Resets an event once all specified stages of the shader pipeline have completed.
unsafe fn wait_events<'a, I, J>(&mut self, _: I, _: Range<PipelineStage>, _: J) where
J: Iterator<Item = Barrier<'a, Backend>>,
unsafe fn wait_events<'a, I, J>(&mut self, _: I, _: Range<PipelineStage>, _: J) where
J: Iterator<Item = Barrier<'a, Backend>>,
Waits at some shader stage(s) until all events have been signalled. Read more
Begins a query operation. Queries count operations or record timestamps resulting from commands that occur between the beginning and end of the query, and save the results to the query pool. Read more
Reset/clear the values in the given range of the query pool.
unsafe fn copy_query_pool_results(
&mut self,
_: &(),
_: Range<Id>,
_: &Buffer,
_: Offset,
_: Stride,
_: ResultFlags
)
unsafe fn copy_query_pool_results(
&mut self,
_: &(),
_: Range<Id>,
_: &Buffer,
_: Offset,
_: Stride,
_: ResultFlags
)
Copy query results into a buffer.
Requests a timestamp to be written.
Modify constant data in a graphics pipeline. Push constants are intended to modify data in a pipeline more quickly than a updating the values inside a descriptor set. Read more
Modify constant data in a compute pipeline. Push constants are intended to modify data in a pipeline more quickly than a updating the values inside a descriptor set. Read more
unsafe fn execute_commands<'a, T>(&mut self, _: T) where
T: Iterator<Item = &'a CommandBuffer>,
unsafe fn execute_commands<'a, T>(&mut self, _: T) where
T: Iterator<Item = &'a CommandBuffer>,
Execute the given secondary command buffers.
Debug mark the current spot in the command buffer.
Start a debug marker at the current place in the command buffer.
End the last started debug marker scope.
Begins recording a primary command buffer (that has no inheritance information). Read more
Auto Trait Implementations
impl RefUnwindSafe for CommandBuffer
impl Send for CommandBuffer
impl Sync for CommandBuffer
impl Unpin for CommandBuffer
impl UnwindSafe for CommandBuffer