Enum sierra::Command[][src]

pub enum Command<'a> {
    BeginRenderPass {
        pass: &'a RenderPass,
        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 [DescriptorSet],
        dynamic_offsets: &'a [u32],
    },
    BindComputeDescriptorSets {
        layout: &'a PipelineLayout,
        first_set: u32,
        sets: &'a [DescriptorSet],
        dynamic_offsets: &'a [u32],
    },
    BindRayTracingDescriptorSets {
        layout: &'a PipelineLayout,
        first_set: u32,
        sets: &'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 [(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>],
        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

pass: &'a RenderPassframebuffer: &'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 [DescriptorSet]dynamic_offsets: &'a [u32]
BindComputeDescriptorSets

Fields of BindComputeDescriptorSets

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

Fields of BindRayTracingDescriptorSets

layout: &'a PipelineLayoutfirst_set: u32sets: &'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 [(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>]memory: Option<MemoryBarrier>
PushConstants

Fields of PushConstants

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

Fields of Dispatch

x: u32y: u32z: u32

Trait Implementations

impl<'a> Debug for Command<'a>[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for Command<'a>

impl<'a> Send for Command<'a>

impl<'a> Sync for Command<'a>

impl<'a> Unpin for Command<'a>

impl<'a> !UnwindSafe for Command<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.