pub enum Command<'a> {
Show 24 variants
BeginRenderPass {
framebuffer: &'a Framebuffer,
clears: &'a [ClearValue],
},
EndRenderPass,
BindGraphicsPipeline {
pipeline: &'a GraphicsPipeline,
},
BindComputePipeline {
pipeline: &'a ComputePipeline,
},
BindRayTracingPipeline {
pipeline: &'a RayTracingPipeline,
},
BindGraphicsDescriptorSets {
layout: &'a PipelineLayout,
first_set: u32,
sets: &'a [&'a DescriptorSet],
dynamic_offsets: &'a [u32],
},
BindComputeDescriptorSets {
layout: &'a PipelineLayout,
first_set: u32,
sets: &'a [&'a DescriptorSet],
dynamic_offsets: &'a [u32],
},
BindRayTracingDescriptorSets {
layout: &'a PipelineLayout,
first_set: u32,
sets: &'a [&'a DescriptorSet],
dynamic_offsets: &'a [u32],
},
SetViewport {
viewport: Viewport,
},
SetScissor {
scissor: Rect2d,
},
Draw {
vertices: Range<u32>,
instances: Range<u32>,
},
DrawIndexed {
indices: Range<u32>,
vertex_offset: i32,
instances: Range<u32>,
},
UpdateBuffer {
buffer: &'a Buffer,
offset: u64,
data: &'a [u8],
},
BindVertexBuffers {
first: u32,
buffers: &'a [(&'a Buffer, u64)],
},
BindIndexBuffer {
buffer: &'a Buffer,
offset: u64,
index_type: IndexType,
},
BuildAccelerationStructure {
infos: &'a [AccelerationStructureBuildGeometryInfo<'a>],
},
TraceRays {
shader_binding_table: &'a ShaderBindingTable,
extent: Extent3d,
},
CopyBuffer {
src_buffer: &'a Buffer,
dst_buffer: &'a Buffer,
regions: &'a [BufferCopy],
},
CopyImage {
src_image: &'a Image,
src_layout: Layout,
dst_image: &'a Image,
dst_layout: Layout,
regions: &'a [ImageCopy],
},
CopyBufferImage {
src_buffer: &'a Buffer,
dst_image: &'a Image,
dst_layout: Layout,
regions: &'a [BufferImageCopy],
},
BlitImage {
src_image: &'a Image,
src_layout: Layout,
dst_image: &'a Image,
dst_layout: Layout,
regions: &'a [ImageBlit],
filter: Filter,
},
PipelineBarrier {
src: PipelineStageFlags,
dst: PipelineStageFlags,
images: &'a [ImageMemoryBarrier<'a>],
buffers: &'a [BufferMemoryBarrier<'a>],
memory: Option<MemoryBarrier>,
},
PushConstants {
layout: &'a PipelineLayout,
stages: ShaderStageFlags,
offset: u32,
data: &'a [u8],
},
Dispatch {
x: u32,
y: u32,
z: u32,
},
}
Fields of BeginRenderPass
Fields of BindGraphicsPipeline
Fields of BindComputePipeline
Fields of BindRayTracingPipeline
Fields of BindGraphicsDescriptorSets
Fields of BindComputeDescriptorSets
Fields of BindRayTracingDescriptorSets
Fields of BindVertexBuffers
Fields of BindIndexBuffer
Fields of BuildAccelerationStructure
Fields of CopyBufferImage
Fields of PipelineBarrier
Formats the value using the given formatter. Read more
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the current Span
, returning an
Instrumented
wrapper. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.