Enum Action

Source
pub enum Action<'a, R: ReferenceType> {
Show 44 variants Init { desc: DeviceDescriptor<'a>, backend: Backend, }, ConfigureSurface(R::Surface, SurfaceConfiguration<Vec<TextureFormat>>), CreateBuffer(R::Buffer, BufferDescriptor<'a>), FreeBuffer(R::Buffer), DestroyBuffer(R::Buffer), CreateTexture(R::Texture, TextureDescriptor<'a>), FreeTexture(R::Texture), DestroyTexture(R::Texture), CreateTextureView { id: R::TextureView, parent: R::Texture, desc: TextureViewDescriptor<'a>, }, DestroyTextureView(R::TextureView), CreateExternalTexture { id: R::ExternalTexture, desc: ExternalTextureDescriptor<'a>, planes: Box<[R::TextureView]>, }, FreeExternalTexture(R::ExternalTexture), DestroyExternalTexture(R::ExternalTexture), CreateSampler(PointerId<Sampler>, SamplerDescriptor<'a>), DestroySampler(PointerId<Sampler>), GetSurfaceTexture { id: R::Texture, parent: R::Surface, }, Present(R::Surface), DiscardSurfaceTexture(R::Surface), CreateBindGroupLayout(PointerId<BindGroupLayout>, BindGroupLayoutDescriptor<'a>), DestroyBindGroupLayout(PointerId<BindGroupLayout>), CreatePipelineLayout(PointerId<PipelineLayout>, ResolvedPipelineLayoutDescriptor<'a, PointerId<BindGroupLayout>>), DestroyPipelineLayout(PointerId<PipelineLayout>), CreateBindGroup(PointerId<BindGroup>, TraceBindGroupDescriptor<'a>), DestroyBindGroup(PointerId<BindGroup>), CreateShaderModule { id: PointerId<ShaderModule>, desc: ShaderModuleDescriptor<'a>, data: String, }, CreateShaderModulePassthrough { id: PointerId<ShaderModule>, data: Vec<String>, entry_point: String, label: Label<'a>, num_workgroups: (u32, u32, u32), runtime_checks: ShaderRuntimeChecks, }, DestroyShaderModule(PointerId<ShaderModule>), CreateComputePipeline { id: PointerId<ComputePipeline>, desc: TraceComputePipelineDescriptor<'a>, }, DestroyComputePipeline(PointerId<ComputePipeline>), CreateGeneralRenderPipeline { id: PointerId<RenderPipeline>, desc: TraceGeneralRenderPipelineDescriptor<'a>, }, DestroyRenderPipeline(PointerId<RenderPipeline>), CreatePipelineCache { id: PointerId<PipelineCache>, desc: PipelineCacheDescriptor<'a>, }, DestroyPipelineCache(PointerId<PipelineCache>), CreateRenderBundle { id: R::RenderBundle, desc: RenderBundleEncoderDescriptor<'a>, base: BasePass<RenderCommand<R>, Infallible>, }, DestroyRenderBundle(PointerId<RenderBundle>), CreateQuerySet { id: PointerId<QuerySet>, desc: QuerySetDescriptor<'a>, }, DestroyQuerySet(PointerId<QuerySet>), WriteBuffer { id: R::Buffer, data: String, range: Range<BufferAddress>, queued: bool, }, WriteTexture { to: TexelCopyTextureInfo<R::Texture>, data: String, layout: TexelCopyBufferLayout, size: Extent3d, }, Submit(SubmissionIndex, Vec<Command<R>>), CreateBlas { id: R::Blas, desc: BlasDescriptor<'a>, sizes: BlasGeometrySizeDescriptors, }, DestroyBlas(R::Blas), CreateTlas { id: R::Tlas, desc: TlasDescriptor<'a>, }, DestroyTlas(R::Tlas),
}

Variants§

§

Init

Fields

§backend: Backend
§

ConfigureSurface(R::Surface, SurfaceConfiguration<Vec<TextureFormat>>)

§

CreateBuffer(R::Buffer, BufferDescriptor<'a>)

§

FreeBuffer(R::Buffer)

§

DestroyBuffer(R::Buffer)

§

CreateTexture(R::Texture, TextureDescriptor<'a>)

§

FreeTexture(R::Texture)

§

DestroyTexture(R::Texture)

§

CreateTextureView

Fields

§parent: R::Texture
§

DestroyTextureView(R::TextureView)

§

CreateExternalTexture

§

FreeExternalTexture(R::ExternalTexture)

§

DestroyExternalTexture(R::ExternalTexture)

§

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

§

DestroySampler(PointerId<Sampler>)

§

GetSurfaceTexture

Fields

§id: R::Texture
§parent: R::Surface
§

Present(R::Surface)

§

DiscardSurfaceTexture(R::Surface)

§

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

§

DestroyBindGroupLayout(PointerId<BindGroupLayout>)

§

CreatePipelineLayout(PointerId<PipelineLayout>, ResolvedPipelineLayoutDescriptor<'a, PointerId<BindGroupLayout>>)

§

DestroyPipelineLayout(PointerId<PipelineLayout>)

§

CreateBindGroup(PointerId<BindGroup>, TraceBindGroupDescriptor<'a>)

§

DestroyBindGroup(PointerId<BindGroup>)

§

CreateShaderModule

§

CreateShaderModulePassthrough

Fields

§data: Vec<String>
§entry_point: String
§label: Label<'a>
§num_workgroups: (u32, u32, u32)
§runtime_checks: ShaderRuntimeChecks
§

DestroyShaderModule(PointerId<ShaderModule>)

§

CreateComputePipeline

Fields

§desc: TraceComputePipelineDescriptor<'a>
§

DestroyComputePipeline(PointerId<ComputePipeline>)

§

CreateGeneralRenderPipeline

Fields

§desc: TraceGeneralRenderPipelineDescriptor<'a>
§

DestroyRenderPipeline(PointerId<RenderPipeline>)

§

CreatePipelineCache

§

DestroyPipelineCache(PointerId<PipelineCache>)

§

CreateRenderBundle

Fields

§base: BasePass<RenderCommand<R>, Infallible>
§

DestroyRenderBundle(PointerId<RenderBundle>)

§

CreateQuerySet

§

DestroyQuerySet(PointerId<QuerySet>)

§

WriteBuffer

Fields

§id: R::Buffer
§data: String
§queued: bool
§

WriteTexture

§

Submit(SubmissionIndex, Vec<Command<R>>)

§

CreateBlas

§

DestroyBlas(R::Blas)

§

CreateTlas

Fields

§id: R::Tlas
§

DestroyTlas(R::Tlas)

Trait Implementations§

Source§

impl<'a, R: Debug + ReferenceType> Debug for Action<'a, R>

Source§

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

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

impl<'de, 'a, R: ReferenceType> Deserialize<'de> for Action<'a, R>
where R::Buffer: Serialize + for<'d> Deserialize<'d>, R::Surface: Serialize + for<'d> Deserialize<'d>, R::Texture: Serialize + for<'d> Deserialize<'d>, R::TextureView: Serialize + for<'d> Deserialize<'d>, R::ExternalTexture: Serialize + for<'d> Deserialize<'d>, R::QuerySet: Serialize + for<'d> Deserialize<'d>, R::BindGroup: Serialize + for<'d> Deserialize<'d>, R::RenderPipeline: Serialize + for<'d> Deserialize<'d>, R::RenderBundle: Serialize + for<'d> Deserialize<'d>, R::ComputePipeline: Serialize + for<'d> Deserialize<'d>, R::Blas: Serialize + for<'d> Deserialize<'d>, R::Tlas: Serialize + for<'d> Deserialize<'d>, BufferTransition<R::Buffer>: Serialize + for<'d> Deserialize<'d>, TextureTransition<R::Texture>: Serialize + for<'d> Deserialize<'d>,

Source§

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

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

impl<'a, R: ReferenceType> Serialize for Action<'a, R>
where R::Buffer: Serialize + for<'d> Deserialize<'d>, R::Surface: Serialize + for<'d> Deserialize<'d>, R::Texture: Serialize + for<'d> Deserialize<'d>, R::TextureView: Serialize + for<'d> Deserialize<'d>, R::ExternalTexture: Serialize + for<'d> Deserialize<'d>, R::QuerySet: Serialize + for<'d> Deserialize<'d>, R::BindGroup: Serialize + for<'d> Deserialize<'d>, R::RenderPipeline: Serialize + for<'d> Deserialize<'d>, R::RenderBundle: Serialize + for<'d> Deserialize<'d>, R::ComputePipeline: Serialize + for<'d> Deserialize<'d>, R::Blas: Serialize + for<'d> Deserialize<'d>, R::Tlas: Serialize + for<'d> Deserialize<'d>, BufferTransition<R::Buffer>: Serialize + for<'d> Deserialize<'d>, TextureTransition<R::Texture>: Serialize + for<'d> Deserialize<'d>,

Source§

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

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

§

impl<'a, R> Freeze for Action<'a, R>

§

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

§

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

§

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

§

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

§

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

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

Source§

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

Source§

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,