Enum sierra::Command[][src]

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, },
}

Variants

BeginRenderPass

Fields of BeginRenderPass

framebuffer: &'a Framebufferclears: &'a [ClearValue]
EndRenderPass
BindGraphicsPipeline

Fields of BindGraphicsPipeline

pipeline: &'a GraphicsPipeline
BindComputePipeline

Fields of BindComputePipeline

pipeline: &'a ComputePipeline
BindRayTracingPipeline

Fields of BindRayTracingPipeline

pipeline: &'a RayTracingPipeline
BindGraphicsDescriptorSets

Fields of BindGraphicsDescriptorSets

layout: &'a PipelineLayoutfirst_set: u32sets: &'a [&'a DescriptorSet]dynamic_offsets: &'a [u32]
BindComputeDescriptorSets

Fields of BindComputeDescriptorSets

layout: &'a PipelineLayoutfirst_set: u32sets: &'a [&'a DescriptorSet]dynamic_offsets: &'a [u32]
BindRayTracingDescriptorSets

Fields of BindRayTracingDescriptorSets

layout: &'a PipelineLayoutfirst_set: u32sets: &'a [&'a DescriptorSet]dynamic_offsets: &'a [u32]
SetViewport

Fields of SetViewport

viewport: Viewport
SetScissor

Fields of SetScissor

scissor: Rect2d
Draw

Fields of Draw

vertices: Range<u32>instances: Range<u32>
DrawIndexed

Fields of DrawIndexed

indices: Range<u32>vertex_offset: i32instances: Range<u32>
UpdateBuffer

Fields of UpdateBuffer

buffer: &'a Bufferoffset: u64data: &'a [u8]
BindVertexBuffers

Fields of BindVertexBuffers

first: u32buffers: &'a [(&'a Buffer, u64)]
BindIndexBuffer

Fields of BindIndexBuffer

buffer: &'a Bufferoffset: u64index_type: IndexType
BuildAccelerationStructure

Fields of BuildAccelerationStructure

infos: &'a [AccelerationStructureBuildGeometryInfo<'a>]
TraceRays

Fields of TraceRays

shader_binding_table: &'a ShaderBindingTableextent: Extent3d
CopyBuffer

Fields of CopyBuffer

src_buffer: &'a Bufferdst_buffer: &'a Bufferregions: &'a [BufferCopy]
CopyImage

Fields of CopyImage

src_image: &'a Imagesrc_layout: Layoutdst_image: &'a Imagedst_layout: Layoutregions: &'a [ImageCopy]
CopyBufferImage

Fields of CopyBufferImage

src_buffer: &'a Bufferdst_image: &'a Imagedst_layout: Layoutregions: &'a [BufferImageCopy]
BlitImage

Fields of BlitImage

src_image: &'a Imagesrc_layout: Layoutdst_image: &'a Imagedst_layout: Layoutregions: &'a [ImageBlit]filter: Filter
PipelineBarrier

Fields of PipelineBarrier

src: PipelineStageFlagsdst: PipelineStageFlagsimages: &'a [ImageMemoryBarrier<'a>]buffers: &'a [BufferMemoryBarrier<'a>]memory: Option<MemoryBarrier>
PushConstants

Fields of PushConstants

layout: &'a PipelineLayoutstages: ShaderStageFlagsoffset: u32data: &'a [u8]
Dispatch

Fields of Dispatch

x: u32y: u32z: u32

Trait Implementations

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.

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

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.