[−][src]Struct gfx_backend_empty::CommandBuffer
pub struct CommandBuffer;
Dummy command buffer, which ignores all the calls.
Trait Implementations
impl CommandBuffer<Backend> for CommandBuffer
[src][+]
unsafe fn begin(
&mut self,
_: CommandBufferFlags,
_: CommandBufferInheritanceInfo<'_, Backend>
)
[src][−]
&mut self,
_: CommandBufferFlags,
_: CommandBufferInheritanceInfo<'_, Backend>
)
Begins recording commands to a command buffer.
unsafe fn finish(&mut self)
[src][−]
Finish recording commands to a command buffer.
unsafe fn reset(&mut self, _: bool)
[src][−]
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: IntoIterator,
T::Item: Borrow<Barrier<'a, Backend>>,
[src][−]
&mut self,
_: Range<PipelineStage>,
_: Dependencies,
_: T
) where
T: IntoIterator,
T::Item: Borrow<Barrier<'a, Backend>>,
Inserts a synchronization dependency between pipeline stages in the command buffer. Read more
unsafe fn fill_buffer(&mut self, _: &Buffer, _: SubRange, _: u32)
[src][−]
Fill a buffer with the given u32
value.
unsafe fn update_buffer(&mut self, _: &Buffer, _: Offset, _: &[u8])
[src][−]
Copy data from the given slice into a buffer.
unsafe fn clear_image<T>(&mut self, _: &Image, _: Layout, _: ClearValue, _: T) where
T: IntoIterator,
T::Item: Borrow<SubresourceRange>,
[src][−]
T: IntoIterator,
T::Item: Borrow<SubresourceRange>,
Clears an image to the given color/depth/stencil.
unsafe fn clear_attachments<T, U>(&mut self, _: T, _: U) where
T: IntoIterator,
T::Item: Borrow<AttachmentClear>,
U: IntoIterator,
U::Item: Borrow<ClearRect>,
[src][−]
T: IntoIterator,
T::Item: Borrow<AttachmentClear>,
U: IntoIterator,
U::Item: Borrow<ClearRect>,
Takes an iterator of attachments and an iterator of rect's, and clears the given rect's for each attachment. Read more
unsafe fn resolve_image<T>(
&mut self,
_: &Image,
_: Layout,
_: &Image,
_: Layout,
_: T
) where
T: IntoIterator,
T::Item: Borrow<ImageResolve>,
[src][−]
&mut self,
_: &Image,
_: Layout,
_: &Image,
_: Layout,
_: T
) where
T: IntoIterator,
T::Item: Borrow<ImageResolve>,
"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
) where
T: IntoIterator,
T::Item: Borrow<ImageBlit>,
[src][−]
&mut self,
_: &Image,
_: Layout,
_: &Image,
_: Layout,
_: Filter,
_: T
) where
T: IntoIterator,
T::Item: Borrow<ImageBlit>,
Copies regions from the source to destination image, applying scaling, filtering and potentially format conversion. Read more
unsafe fn bind_index_buffer(&mut self, _: IndexBufferView<'_, Backend>)
[src][−]
Bind the index buffer view, making it the "current" one that draw commands will operate on. Read more
unsafe fn bind_vertex_buffers<I, T>(&mut self, _: u32, _: I) where
I: IntoIterator<Item = (T, SubRange)>,
T: Borrow<Buffer>,
[src][−]
I: IntoIterator<Item = (T, SubRange)>,
T: Borrow<Buffer>,
Bind the vertex buffer set, making it the "current" one that draw commands will operate on. Read more
unsafe fn set_viewports<T>(&mut self, _: u32, _: T) where
T: IntoIterator,
T::Item: Borrow<Viewport>,
[src][−]
T: IntoIterator,
T::Item: Borrow<Viewport>,
unsafe fn set_scissors<T>(&mut self, _: u32, _: T) where
T: IntoIterator,
T::Item: Borrow<Rect>,
[src][−]
T: IntoIterator,
T::Item: Borrow<Rect>,
Set the scissor rectangles for the rasterizer. Read more
unsafe fn set_stencil_reference(&mut self, _: Face, _: StencilValue)
[src][−]
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
unsafe fn set_stencil_read_mask(&mut self, _: Face, _: StencilValue)
[src][−]
Sets the stencil read mask.
unsafe fn set_stencil_write_mask(&mut self, _: Face, _: StencilValue)
[src][−]
Sets the stencil write mask.
unsafe fn set_blend_constants(&mut self, _: ColorValue)
[src][−]
Set the blend constant values dynamically.
unsafe fn set_depth_bounds(&mut self, _: Range<f32>)
[src][−]
Set the depth bounds test values dynamically.
unsafe fn set_line_width(&mut self, _: f32)
[src][−]
Set the line width dynamically. Read more
unsafe fn set_depth_bias(&mut self, _: DepthBias)
[src][−]
Set the depth bias dynamically.
unsafe fn begin_render_pass<T>(
&mut self,
_: &(),
_: &(),
_: Rect,
_: T,
_: SubpassContents
) where
T: IntoIterator,
T::Item: Borrow<ClearValue>,
[src][−]
&mut self,
_: &(),
_: &(),
_: Rect,
_: T,
_: SubpassContents
) where
T: IntoIterator,
T::Item: Borrow<ClearValue>,
Begins recording commands for a render pass on the given framebuffer. Read more
unsafe fn next_subpass(&mut self, _: SubpassContents)
[src][−]
Steps to the next subpass in the current render pass.
unsafe fn end_render_pass(&mut self)
[src][−]
Finishes recording commands for the current a render pass.
unsafe fn bind_graphics_pipeline(&mut self, _: &())
[src][−]
Bind a graphics pipeline. Read more
unsafe fn bind_graphics_descriptor_sets<I, J>(
&mut self,
_: &(),
_: usize,
_: I,
_: J
) where
I: IntoIterator,
I::Item: Borrow<DescriptorSet>,
J: IntoIterator,
J::Item: Borrow<DescriptorSetOffset>,
[src][−]
&mut self,
_: &(),
_: usize,
_: I,
_: J
) where
I: IntoIterator,
I::Item: Borrow<DescriptorSet>,
J: IntoIterator,
J::Item: Borrow<DescriptorSetOffset>,
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
unsafe fn bind_compute_pipeline(&mut self, _: &())
[src][−]
Bind a compute pipeline. Read more
unsafe fn bind_compute_descriptor_sets<I, J>(
&mut self,
_: &(),
_: usize,
_: I,
_: J
) where
I: IntoIterator,
I::Item: Borrow<DescriptorSet>,
J: IntoIterator,
J::Item: Borrow<DescriptorSetOffset>,
[src][−]
&mut self,
_: &(),
_: usize,
_: I,
_: J
) where
I: IntoIterator,
I::Item: Borrow<DescriptorSet>,
J: IntoIterator,
J::Item: Borrow<DescriptorSetOffset>,
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
unsafe fn dispatch(&mut self, _: WorkGroupCount)
[src][−]
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
unsafe fn dispatch_indirect(&mut self, _: &Buffer, _: Offset)
[src][−]
Works similarly to dispatch()
but reads parameters from the given
buffer during execution. Read more
unsafe fn copy_buffer<T>(&mut self, _: &Buffer, _: &Buffer, _: T) where
T: IntoIterator,
T::Item: Borrow<BufferCopy>,
[src][−]
T: IntoIterator,
T::Item: Borrow<BufferCopy>,
Adds a command to copy regions from the source to destination buffer.
unsafe fn copy_image<T>(
&mut self,
_: &Image,
_: Layout,
_: &Image,
_: Layout,
_: T
) where
T: IntoIterator,
T::Item: Borrow<ImageCopy>,
[src][−]
&mut self,
_: &Image,
_: Layout,
_: &Image,
_: Layout,
_: T
) where
T: IntoIterator,
T::Item: Borrow<ImageCopy>,
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
unsafe fn copy_buffer_to_image<T>(
&mut self,
_: &Buffer,
_: &Image,
_: Layout,
_: T
) where
T: IntoIterator,
T::Item: Borrow<BufferImageCopy>,
[src][−]
&mut self,
_: &Buffer,
_: &Image,
_: Layout,
_: T
) where
T: IntoIterator,
T::Item: Borrow<BufferImageCopy>,
Copies regions from the source buffer to the destination image.
unsafe fn copy_image_to_buffer<T>(
&mut self,
_: &Image,
_: Layout,
_: &Buffer,
_: T
) where
T: IntoIterator,
T::Item: Borrow<BufferImageCopy>,
[src][−]
&mut self,
_: &Image,
_: Layout,
_: &Buffer,
_: T
) where
T: IntoIterator,
T::Item: Borrow<BufferImageCopy>,
Copies regions from the source image to the destination buffer.
unsafe fn draw(&mut self, _: Range<VertexCount>, _: Range<InstanceCount>)
[src][−]
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>
)
[src][−]
&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
unsafe fn draw_indirect(&mut self, _: &Buffer, _: Offset, _: DrawCount, _: u32)
[src][−]
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
unsafe fn draw_indexed_indirect(
&mut self,
_: &Buffer,
_: Offset,
_: DrawCount,
_: u32
)
[src][−]
&mut self,
_: &Buffer,
_: Offset,
_: DrawCount,
_: u32
)
Like draw_indirect()
, this does indexed drawing a la draw_indexed()
but
reads the draw parameters out of the given buffer. Read more
unsafe fn draw_indirect_count(
&mut self,
_: &Buffer,
_: Offset,
_: &Buffer,
_: Offset,
_: u32,
_: u32
)
[src][−]
&mut self,
_: &Buffer,
_: Offset,
_: &Buffer,
_: Offset,
_: u32,
_: u32
)
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
unsafe fn draw_indexed_indirect_count(
&mut self,
_: &Buffer,
_: Offset,
_: &Buffer,
_: Offset,
_: u32,
_: u32
)
[src][−]
&mut self,
_: &Buffer,
_: Offset,
_: &Buffer,
_: Offset,
_: u32,
_: u32
)
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
unsafe fn draw_mesh_tasks(&mut self, _: u32, _: u32)
[src][−]
Dispatches task_count
of threads. Similar to compute dispatch.
unsafe fn draw_mesh_tasks_indirect(
&mut self,
_: &Buffer,
_: Offset,
_: DrawCount,
_: u32
)
[src][−]
&mut self,
_: &Buffer,
_: Offset,
_: DrawCount,
_: u32
)
Indirect version of draw_mesh_tasks
. Analogous to draw_indirect
, but for mesh shaders.
unsafe fn draw_mesh_tasks_indirect_count(
&mut self,
_: &Buffer,
_: Offset,
_: &Buffer,
_: Offset,
_: u32,
_: u32
)
[src][−]
&mut self,
_: &Buffer,
_: Offset,
_: &Buffer,
_: Offset,
_: u32,
_: u32
)
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
unsafe fn set_event(&mut self, _: &(), _: PipelineStage)
[src][−]
Signals an event once all specified stages of the shader pipeline have completed.
unsafe fn reset_event(&mut self, _: &(), _: PipelineStage)
[src][−]
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
I: IntoIterator,
I::Item: Borrow<()>,
J: IntoIterator,
J::Item: Borrow<Barrier<'a, Backend>>,
[src][−]
I: IntoIterator,
I::Item: Borrow<()>,
J: IntoIterator,
J::Item: Borrow<Barrier<'a, Backend>>,
Waits at some shader stage(s) until all events have been signalled. Read more
unsafe fn begin_query(&mut self, _: Query<'_, Backend>, _: ControlFlags)
[src][−]
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
unsafe fn end_query(&mut self, _: Query<'_, Backend>)
[src][−]
End a query.
unsafe fn reset_query_pool(&mut self, _: &(), _: Range<Id>)
[src][−]
Reset/clear the values in the given range of the query pool.
unsafe fn copy_query_pool_results(
&mut self,
_: &(),
_: Range<Id>,
_: &Buffer,
_: Offset,
_: Offset,
_: ResultFlags
)
[src][−]
&mut self,
_: &(),
_: Range<Id>,
_: &Buffer,
_: Offset,
_: Offset,
_: ResultFlags
)
Copy query results into a buffer.
unsafe fn write_timestamp(&mut self, _: PipelineStage, _: Query<'_, Backend>)
[src][−]
Requests a timestamp to be written.
unsafe fn push_graphics_constants(
&mut self,
_: &(),
_: ShaderStageFlags,
_: u32,
_: &[u32]
)
[src][−]
&mut self,
_: &(),
_: ShaderStageFlags,
_: u32,
_: &[u32]
)
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
unsafe fn push_compute_constants(&mut self, _: &(), _: u32, _: &[u32])
[src][−]
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, I>(&mut self, _: I) where
T: 'a + Borrow<CommandBuffer>,
I: IntoIterator<Item = &'a T>,
[src][−]
T: 'a + Borrow<CommandBuffer>,
I: IntoIterator<Item = &'a T>,
Execute the given secondary command buffers.
unsafe fn insert_debug_marker(&mut self, _: &str, _: u32)
[src][−]
Debug mark the current spot in the command buffer.
unsafe fn begin_debug_marker(&mut self, _: &str, _: u32)
[src][−]
Start a debug marker at the current place in the command buffer.
unsafe fn end_debug_marker(&mut self)
[src][−]
End the last started debug marker scope.
unsafe fn begin_primary(&mut self, flags: CommandBufferFlags)
[src][−]
Begins recording a primary command buffer (that has no inheritance information). Read more
impl Debug for CommandBuffer
[src][+]
Auto Trait Implementations
impl RefUnwindSafe for CommandBuffer
impl Send for CommandBuffer
impl Sync for CommandBuffer
impl Unpin for CommandBuffer
impl UnwindSafe for CommandBuffer
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
[src][−]
Gets the TypeId
of self
. Read more
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
fn borrow(&self) -> &T
[src][−]
Immutably borrows from an owned value. Read more
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src][−]
Mutably borrows from an owned value. Read more
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src][−]
Performs the conversion.
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,