[go: up one dir, main page]

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

source ·
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<Api>>, BufferDescriptor<Option<Cow<'a, str>>>), FreeBuffer(Id<Buffer<Api>>), DestroyBuffer(Id<Buffer<Api>>), CreateTexture(Id<Texture<Api>>, TextureDescriptor<Option<Cow<'a, str>>, Vec<TextureFormat>>), FreeTexture(Id<Texture<Api>>), DestroyTexture(Id<Texture<Api>>), CreateTextureView { id: Id<TextureView<Api>>, parent_id: Id<Texture<Api>>, desc: TextureViewDescriptor<'a>, }, DestroyTextureView(Id<TextureView<Api>>), CreateSampler(Id<Sampler<Api>>, SamplerDescriptor<'a>), DestroySampler(Id<Sampler<Api>>), GetSurfaceTexture { id: Id<Texture<Api>>, parent_id: Id<Surface>, }, Present(Id<Surface>), DiscardSurfaceTexture(Id<Surface>), CreateBindGroupLayout(Id<BindGroupLayout<Api>>, BindGroupLayoutDescriptor<'a>), DestroyBindGroupLayout(Id<BindGroupLayout<Api>>), CreatePipelineLayout(Id<PipelineLayout<Api>>, PipelineLayoutDescriptor<'a>), DestroyPipelineLayout(Id<PipelineLayout<Api>>), CreateBindGroup(Id<BindGroup<Api>>, BindGroupDescriptor<'a>), DestroyBindGroup(Id<BindGroup<Api>>), CreateShaderModule { id: Id<ShaderModule<Api>>, desc: ShaderModuleDescriptor<'a>, data: String, }, DestroyShaderModule(Id<ShaderModule<Api>>), CreateComputePipeline { id: Id<ComputePipeline<Api>>, desc: ComputePipelineDescriptor<'a>, implicit_context: Option<ImplicitPipelineContext>, }, DestroyComputePipeline(Id<ComputePipeline<Api>>), CreateRenderPipeline { id: Id<RenderPipeline<Api>>, desc: RenderPipelineDescriptor<'a>, implicit_context: Option<ImplicitPipelineContext>, }, DestroyRenderPipeline(Id<RenderPipeline<Api>>), CreateRenderBundle { id: Id<RenderBundle<Api>>, desc: RenderBundleEncoderDescriptor<'a>, base: BasePass<RenderCommand>, }, DestroyRenderBundle(Id<RenderBundle<Api>>), CreateQuerySet { id: Id<QuerySet<Api>>, desc: QuerySetDescriptor<Option<Cow<'a, str>>>, }, DestroyQuerySet(Id<QuerySet<Api>>), WriteBuffer { id: Id<Buffer<Api>>, data: String, range: Range<u64>, queued: bool, }, WriteTexture { to: ImageCopyTexture<Id<Texture<Api>>>, 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<Api>>, BufferDescriptor<Option<Cow<'a, str>>>)

§

FreeBuffer(Id<Buffer<Api>>)

§

DestroyBuffer(Id<Buffer<Api>>)

§

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

§

FreeTexture(Id<Texture<Api>>)

§

DestroyTexture(Id<Texture<Api>>)

§

CreateTextureView

Fields

§parent_id: Id<Texture<Api>>
§

DestroyTextureView(Id<TextureView<Api>>)

§

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

§

DestroySampler(Id<Sampler<Api>>)

§

GetSurfaceTexture

Fields

§parent_id: Id<Surface>
§

Present(Id<Surface>)

§

DiscardSurfaceTexture(Id<Surface>)

§

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

§

DestroyBindGroupLayout(Id<BindGroupLayout<Api>>)

§

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

§

DestroyPipelineLayout(Id<PipelineLayout<Api>>)

§

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

§

DestroyBindGroup(Id<BindGroup<Api>>)

§

CreateShaderModule

§

DestroyShaderModule(Id<ShaderModule<Api>>)

§

CreateComputePipeline

§

DestroyComputePipeline(Id<ComputePipeline<Api>>)

§

CreateRenderPipeline

§

DestroyRenderPipeline(Id<RenderPipeline<Api>>)

§

CreateRenderBundle

Fields

§base: BasePass<RenderCommand>
§

DestroyRenderBundle(Id<RenderBundle<Api>>)

§

CreateQuerySet

§

DestroyQuerySet(Id<QuerySet<Api>>)

§

WriteBuffer

Fields

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

WriteTexture

§

Submit(u64, Vec<Command>)

Trait Implementations§

source§

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

source§

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

Formats the value using the given formatter. Read more
source§

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

source§

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
source§

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

source§

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,