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 wgpu_hal::gles::AccelerationStructure
Available on
gles only.impl DynResource for wgpu_hal::vulkan::AccelerationStructure
Available on
vulkan only.impl DynResource for wgpu_hal::gles::Adapter
Available on
gles only.impl DynResource for wgpu_hal::vulkan::Adapter
Available on
vulkan only.impl DynResource for wgpu_hal::gles::BindGroup
Available on
gles only.impl DynResource for wgpu_hal::vulkan::BindGroup
Available on
vulkan only.impl DynResource for wgpu_hal::gles::BindGroupLayout
Available on
gles only.impl DynResource for wgpu_hal::vulkan::BindGroupLayout
Available on
vulkan only.impl DynResource for wgpu_hal::gles::Buffer
Available on
gles only.impl DynResource for wgpu_hal::noop::Buffer
impl DynResource for wgpu_hal::vulkan::Buffer
Available on
vulkan only.impl DynResource for wgpu_hal::gles::CommandBuffer
Available on
gles only.impl DynResource for wgpu_hal::noop::CommandBuffer
impl DynResource for wgpu_hal::vulkan::CommandBuffer
Available on
vulkan only.impl DynResource for wgpu_hal::gles::CommandEncoder
Available on
gles only.impl DynResource for wgpu_hal::vulkan::CommandEncoder
Available on
vulkan only.impl DynResource for wgpu_hal::gles::ComputePipeline
Available on
gles only.impl DynResource for wgpu_hal::vulkan::ComputePipeline
Available on
vulkan only.impl DynResource for Context
impl DynResource for wgpu_hal::gles::Device
Available on
gles only.impl DynResource for wgpu_hal::vulkan::Device
Available on
vulkan only.impl DynResource for wgpu_hal::gles::Fence
Available on
gles only.impl DynResource for wgpu_hal::noop::Fence
impl DynResource for wgpu_hal::vulkan::Fence
Available on
vulkan only.impl DynResource for wgpu_hal::gles::Instance
Available on
gles only.impl DynResource for wgpu_hal::vulkan::Instance
Available on
vulkan only.impl DynResource for wgpu_hal::gles::PipelineCache
Available on
gles only.impl DynResource for wgpu_hal::vulkan::PipelineCache
Available on
vulkan only.impl DynResource for wgpu_hal::gles::PipelineLayout
Available on
gles only.impl DynResource for wgpu_hal::vulkan::PipelineLayout
Available on
vulkan only.impl DynResource for wgpu_hal::gles::QuerySet
Available on
gles only.impl DynResource for wgpu_hal::vulkan::QuerySet
Available on
vulkan only.impl DynResource for wgpu_hal::gles::Queue
Available on
gles only.impl DynResource for wgpu_hal::vulkan::Queue
Available on
vulkan only.impl DynResource for wgpu_hal::gles::RayTracingPipeline
Available on
gles only.impl DynResource for wgpu_hal::vulkan::RayTracingPipeline
Available on
vulkan only.impl DynResource for wgpu_hal::gles::RenderPipeline
Available on
gles only.impl DynResource for wgpu_hal::vulkan::RenderPipeline
Available on
vulkan only.impl DynResource for Resource
impl DynResource for wgpu_hal::gles::Sampler
Available on
gles only.impl DynResource for wgpu_hal::vulkan::Sampler
Available on
vulkan only.impl DynResource for wgpu_hal::gles::ShaderModule
Available on
gles only.impl DynResource for wgpu_hal::vulkan::ShaderModule
Available on
vulkan only.impl DynResource for wgpu_hal::gles::Surface
Available on
gles only.impl DynResource for wgpu_hal::vulkan::Surface
Available on
vulkan only.impl DynResource for SurfaceTexture
Available on
vulkan only.impl DynResource for wgpu_hal::gles::Texture
Available on
gles only.impl DynResource for wgpu_hal::vulkan::Texture
Available on
vulkan only.impl DynResource for wgpu_hal::gles::TextureView
Available on
gles only.impl DynResource for wgpu_hal::vulkan::TextureView
Available on
vulkan only.