[][src]Enum wgpu_core::device::trace::Action

pub enum Action {
    Init {
        desc: DeviceDescriptor,
        backend: Backend,
    },
    CreateBuffer {
        id: BufferId,
        desc: BufferDescriptor<String>,
    },
    DestroyBuffer(BufferId),
    CreateTexture {
        id: TextureId,
        desc: TextureDescriptor<String>,
    },
    DestroyTexture(TextureId),
    CreateTextureView {
        id: TextureViewId,
        parent_id: TextureId,
        desc: Option<TextureViewDescriptor<String>>,
    },
    DestroyTextureView(TextureViewId),
    CreateSampler {
        id: SamplerId,
        desc: SamplerDescriptor<String>,
    },
    DestroySampler(SamplerId),
    CreateSwapChain {
        id: SwapChainId,
        desc: SwapChainDescriptor,
    },
    GetSwapChainTexture {
        id: Option<TextureViewId>,
        parent_id: SwapChainId,
    },
    PresentSwapChain(SwapChainId),
    CreateBindGroupLayout {
        id: BindGroupLayoutId,
        label: String,
        entries: Vec<BindGroupLayoutEntry>,
    },
    DestroyBindGroupLayout(BindGroupLayoutId),
    CreatePipelineLayout {
        id: PipelineLayoutId,
        bind_group_layouts: Vec<BindGroupLayoutId>,
    },
    DestroyPipelineLayout(PipelineLayoutId),
    CreateBindGroup {
        id: BindGroupId,
        label: String,
        layout_id: BindGroupLayoutId,
        entries: BTreeMap<u32, BindingResource>,
    },
    DestroyBindGroup(BindGroupId),
    CreateShaderModule {
        id: ShaderModuleId,
        data: String,
    },
    DestroyShaderModule(ShaderModuleId),
    CreateComputePipeline {
        id: ComputePipelineId,
        desc: ComputePipelineDescriptor,
    },
    DestroyComputePipeline(ComputePipelineId),
    CreateRenderPipeline {
        id: RenderPipelineId,
        desc: RenderPipelineDescriptor,
    },
    DestroyRenderPipeline(RenderPipelineId),
    CreateRenderBundle {
        id: RenderBundleId,
        desc: RenderBundleDescriptor,
        commands: Vec<RenderCommand>,
        dynamic_offsets: Vec<DynamicOffset>,
    },
    DestroyRenderBundle(RenderBundleId),
    WriteBuffer {
        id: BufferId,
        data: String,
        range: Range<BufferAddress>,
        queued: bool,
    },
    WriteTexture {
        to: TextureCopyView,
        data: String,
        layout: TextureDataLayout,
        size: Extent3d,
    },
    Submit(usizeVec<Command>),
}

Variants

Init

Fields of Init

desc: DeviceDescriptorbackend: Backend
CreateBuffer

Fields of CreateBuffer

id: BufferIddesc: BufferDescriptor<String>
DestroyBuffer(BufferId)
CreateTexture

Fields of CreateTexture

id: TextureIddesc: TextureDescriptor<String>
DestroyTexture(TextureId)
CreateTextureView

Fields of CreateTextureView

id: TextureViewIdparent_id: TextureIddesc: Option<TextureViewDescriptor<String>>
DestroyTextureView(TextureViewId)
CreateSampler

Fields of CreateSampler

id: SamplerIddesc: SamplerDescriptor<String>
DestroySampler(SamplerId)
CreateSwapChain

Fields of CreateSwapChain

id: SwapChainIddesc: SwapChainDescriptor
GetSwapChainTexture

Fields of GetSwapChainTexture

id: Option<TextureViewId>parent_id: SwapChainId
PresentSwapChain(SwapChainId)
CreateBindGroupLayout

Fields of CreateBindGroupLayout

id: BindGroupLayoutIdlabel: Stringentries: Vec<BindGroupLayoutEntry>
DestroyBindGroupLayout(BindGroupLayoutId)
CreatePipelineLayout

Fields of CreatePipelineLayout

id: PipelineLayoutIdbind_group_layouts: Vec<BindGroupLayoutId>
DestroyPipelineLayout(PipelineLayoutId)
CreateBindGroup

Fields of CreateBindGroup

id: BindGroupIdlabel: Stringlayout_id: BindGroupLayoutIdentries: BTreeMap<u32, BindingResource>
DestroyBindGroup(BindGroupId)
CreateShaderModule

Fields of CreateShaderModule

id: ShaderModuleIddata: String
DestroyShaderModule(ShaderModuleId)
CreateComputePipeline

Fields of CreateComputePipeline

id: ComputePipelineIddesc: ComputePipelineDescriptor
DestroyComputePipeline(ComputePipelineId)
CreateRenderPipeline

Fields of CreateRenderPipeline

id: RenderPipelineIddesc: RenderPipelineDescriptor
DestroyRenderPipeline(RenderPipelineId)
CreateRenderBundle

Fields of CreateRenderBundle

id: RenderBundleIddesc: RenderBundleDescriptorcommands: Vec<RenderCommand>dynamic_offsets: Vec<DynamicOffset>
DestroyRenderBundle(RenderBundleId)
WriteBuffer

Fields of WriteBuffer

id: BufferIddata: Stringrange: Range<BufferAddress>queued: bool
WriteTexture

Fields of WriteTexture

to: TextureCopyViewdata: Stringlayout: TextureDataLayoutsize: Extent3d
Submit(usizeVec<Command>)

Trait Implementations

impl Debug for Action[src]

impl Serialize for Action[src]

Auto Trait Implementations

impl !RefUnwindSafe for Action

impl Send for Action

impl Sync for Action

impl Unpin for Action

impl !UnwindSafe for Action

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