pub trait DynResource:
Any
+ WasmNotSendSync
+ 'static {
// Required methods
fn as_any(&self) -> &dyn Any;
fn as_any_mut(&mut self) -> &mut dyn Any;
}Expand description
Base trait for all resources, allows downcasting via Any.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl DynResource for AccelerationStructure
Available on
gles only.impl DynResource for Adapter
Available on
gles only.impl DynResource for BindGroup
Available on
gles only.impl DynResource for BindGroupLayout
Available on
gles only.impl DynResource for wgpu_hal::gles::Buffer
Available on
gles only.impl DynResource for wgpu_hal::noop::Buffer
impl DynResource for wgpu_hal::gles::CommandBuffer
Available on
gles only.impl DynResource for wgpu_hal::noop::CommandBuffer
impl DynResource for CommandEncoder
Available on
gles only.impl DynResource for ComputePipeline
Available on
gles only.impl DynResource for Context
impl DynResource for Device
Available on
gles only.impl DynResource for wgpu_hal::gles::Fence
Available on
gles only.impl DynResource for wgpu_hal::noop::Fence
impl DynResource for Instance
Available on
gles only.impl DynResource for PipelineCache
Available on
gles only.impl DynResource for PipelineLayout
Available on
gles only.impl DynResource for QuerySet
Available on
gles only.impl DynResource for Queue
Available on
gles only.impl DynResource for RenderPipeline
Available on
gles only.impl DynResource for Resource
impl DynResource for Sampler
Available on
gles only.impl DynResource for ShaderModule
Available on
gles only.impl DynResource for Surface
Available on
gles only.impl DynResource for Texture
Available on
gles only.impl DynResource for TextureView
Available on
gles only.