Enum wgpu::core::device::trace::Action

pub enum Action<'a> {
Show 34 variants Init { desc: DeviceDescriptor<Option<Cow<'a, str>>>, backend: Backend, }, ConfigureSurface(Id<Surface>, SurfaceConfiguration<Vec<TextureFormat>>), CreateBuffer(Id<Buffer>, BufferDescriptor<Option<Cow<'a, str>>>), FreeBuffer(Id<Buffer>), DestroyBuffer(Id<Buffer>), CreateTexture(Id<Texture>, TextureDescriptor<Option<Cow<'a, str>>, Vec<TextureFormat>>), FreeTexture(Id<Texture>), DestroyTexture(Id<Texture>), CreateTextureView { id: Id<TextureView>, parent_id: Id<Texture>, desc: TextureViewDescriptor<'a>, }, DestroyTextureView(Id<TextureView>), CreateSampler(Id<Sampler>, SamplerDescriptor<'a>), DestroySampler(Id<Sampler>), GetSurfaceTexture { id: Id<Texture>, parent_id: Id<Surface>, }, Present(Id<Surface>), DiscardSurfaceTexture(Id<Surface>), CreateBindGroupLayout(Id<BindGroupLayout>, BindGroupLayoutDescriptor<'a>), DestroyBindGroupLayout(Id<BindGroupLayout>), CreatePipelineLayout(Id<PipelineLayout>, PipelineLayoutDescriptor<'a>), DestroyPipelineLayout(Id<PipelineLayout>), CreateBindGroup(Id<BindGroup>, BindGroupDescriptor<'a>), DestroyBindGroup(Id<BindGroup>), CreateShaderModule { id: Id<ShaderModule>, desc: ShaderModuleDescriptor<'a>, data: String, }, DestroyShaderModule(Id<ShaderModule>), CreateComputePipeline { id: Id<ComputePipeline>, desc: ComputePipelineDescriptor<'a>, implicit_context: Option<ImplicitPipelineContext>, }, DestroyComputePipeline(Id<ComputePipeline>), CreateRenderPipeline { id: Id<RenderPipeline>, desc: RenderPipelineDescriptor<'a>, implicit_context: Option<ImplicitPipelineContext>, }, DestroyRenderPipeline(Id<RenderPipeline>), CreateRenderBundle { id: Id<RenderBundle>, desc: RenderBundleEncoderDescriptor<'a>, base: BasePass<RenderCommand>, }, DestroyRenderBundle(Id<RenderBundle>), CreateQuerySet { id: Id<QuerySet>, desc: QuerySetDescriptor<Option<Cow<'a, str>>>, }, DestroyQuerySet(Id<QuerySet>), WriteBuffer { id: Id<Buffer>, data: String, range: Range<u64>, queued: bool, }, WriteTexture { to: ImageCopyTexture<Id<Texture>>, data: String, layout: ImageDataLayout, size: Extent3d, }, Submit(u64, Vec<Command>),
}
Available on wgpu_core and (crate features trace or replay) only.

Variants§

§

Init

Fields

§backend: Backend
§

ConfigureSurface(Id<Surface>, SurfaceConfiguration<Vec<TextureFormat>>)

§

CreateBuffer(Id<Buffer>, BufferDescriptor<Option<Cow<'a, str>>>)

§

FreeBuffer(Id<Buffer>)

§

DestroyBuffer(Id<Buffer>)

§

CreateTexture(Id<Texture>, TextureDescriptor<Option<Cow<'a, str>>, Vec<TextureFormat>>)

§

FreeTexture(Id<Texture>)

§

DestroyTexture(Id<Texture>)

§

CreateTextureView

Fields

§parent_id: Id<Texture>
§

DestroyTextureView(Id<TextureView>)

§

CreateSampler(Id<Sampler>, SamplerDescriptor<'a>)

§

DestroySampler(Id<Sampler>)

§

GetSurfaceTexture

Fields

§parent_id: Id<Surface>
§

Present(Id<Surface>)

§

DiscardSurfaceTexture(Id<Surface>)

§

CreateBindGroupLayout(Id<BindGroupLayout>, BindGroupLayoutDescriptor<'a>)

§

DestroyBindGroupLayout(Id<BindGroupLayout>)

§

CreatePipelineLayout(Id<PipelineLayout>, PipelineLayoutDescriptor<'a>)

§

DestroyPipelineLayout(Id<PipelineLayout>)

§

CreateBindGroup(Id<BindGroup>, BindGroupDescriptor<'a>)

§

DestroyBindGroup(Id<BindGroup>)

§

CreateShaderModule

§

DestroyShaderModule(Id<ShaderModule>)

§

CreateComputePipeline

§

DestroyComputePipeline(Id<ComputePipeline>)

§

CreateRenderPipeline

§

DestroyRenderPipeline(Id<RenderPipeline>)

§

CreateRenderBundle

Fields

§base: BasePass<RenderCommand>
§

DestroyRenderBundle(Id<RenderBundle>)

§

CreateQuerySet

§

DestroyQuerySet(Id<QuerySet>)

§

WriteBuffer

Fields

§data: String
§range: Range<u64>
§queued: bool
§

WriteTexture

§

Submit(u64, Vec<Command>)

Trait Implementations§

§

impl<'a> Debug for Action<'a>

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de, 'a> Deserialize<'de> for Action<'a>

§

fn deserialize<__D>( __deserializer: __D ) -> Result<Action<'a>, <__D as Deserializer<'de>>::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl<'a> Serialize for Action<'a>

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for Action<'a>

§

impl<'a> Send for Action<'a>

§

impl<'a> Sync for Action<'a>

§

impl<'a> Unpin for Action<'a>

§

impl<'a> UnwindSafe for Action<'a>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> Downcast<T> for T

§

fn downcast(&self) -> &T

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> Upcast<T> for T

§

fn upcast(&self) -> Option<&T>

source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

source§

impl<T> WasmNotSend for T
where T: Send,

source§

impl<T> WasmNotSendSync for T

source§

impl<T> WasmNotSync for T
where T: Sync,