Struct gfx_backend_empty::CommandBuffer[][src]

pub struct CommandBuffer;
Expand description

Dummy command buffer, which ignores all the calls.

Trait Implementations

Begins recording commands to a command buffer.

Finish recording commands to a command buffer.

Empties the command buffer, optionally releasing all resources from the commands that have been submitted. Read more

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

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 viewport parameters for the rasterizer. 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.

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

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

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 xyz 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

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.

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

End a query.

Reset/clear the values in the given range of the query pool.

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

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

Formats the value using the given formatter. Read more

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

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.