Trait wgpu_hal::DynResource

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

source

fn as_any(&self) -> &dyn Any

source

fn as_any_mut(&mut self) -> &mut dyn Any

Implementors§

source§

impl DynResource for wgpu_hal::vulkan::Fence

Available on vulkan only.
source§

impl DynResource for wgpu_hal::vulkan::ShaderModule

Available on vulkan only.
source§

impl DynResource for Context

source§

impl DynResource for Encoder

source§

impl DynResource for Resource

source§

impl DynResource for wgpu_hal::gles::AccelerationStructure

Available on gles only.
source§

impl DynResource for wgpu_hal::gles::Adapter

Available on gles only.
source§

impl DynResource for wgpu_hal::gles::BindGroup

Available on gles only.
source§

impl DynResource for wgpu_hal::gles::BindGroupLayout

Available on gles only.
source§

impl DynResource for wgpu_hal::gles::Buffer

Available on gles only.
source§

impl DynResource for wgpu_hal::gles::CommandBuffer

Available on gles only.
source§

impl DynResource for wgpu_hal::gles::CommandEncoder

Available on gles only.
source§

impl DynResource for wgpu_hal::gles::ComputePipeline

Available on gles only.
source§

impl DynResource for wgpu_hal::gles::Device

Available on gles only.
source§

impl DynResource for wgpu_hal::gles::Fence

Available on gles only.
source§

impl DynResource for wgpu_hal::gles::PipelineCache

Available on gles only.
source§

impl DynResource for wgpu_hal::gles::PipelineLayout

Available on gles only.
source§

impl DynResource for wgpu_hal::gles::QuerySet

Available on gles only.
source§

impl DynResource for wgpu_hal::gles::Queue

Available on gles only.
source§

impl DynResource for wgpu_hal::gles::RenderPipeline

Available on gles only.
source§

impl DynResource for wgpu_hal::gles::Sampler

Available on gles only.
source§

impl DynResource for wgpu_hal::gles::ShaderModule

Available on gles only.
source§

impl DynResource for wgpu_hal::gles::Texture

Available on gles only.
source§

impl DynResource for wgpu_hal::gles::TextureView

Available on gles only.
source§

impl DynResource for wgpu_hal::vulkan::AccelerationStructure

Available on vulkan only.
source§

impl DynResource for wgpu_hal::vulkan::Adapter

Available on vulkan only.
source§

impl DynResource for wgpu_hal::vulkan::BindGroup

Available on vulkan only.
source§

impl DynResource for wgpu_hal::vulkan::BindGroupLayout

Available on vulkan only.
source§

impl DynResource for wgpu_hal::vulkan::Buffer

Available on vulkan only.
source§

impl DynResource for wgpu_hal::vulkan::CommandBuffer

Available on vulkan only.
source§

impl DynResource for wgpu_hal::vulkan::CommandEncoder

Available on vulkan only.
source§

impl DynResource for wgpu_hal::vulkan::ComputePipeline

Available on vulkan only.
source§

impl DynResource for wgpu_hal::vulkan::Device

Available on vulkan only.
source§

impl DynResource for Instance

Available on vulkan only.
source§

impl DynResource for wgpu_hal::vulkan::PipelineCache

Available on vulkan only.
source§

impl DynResource for wgpu_hal::vulkan::PipelineLayout

Available on vulkan only.
source§

impl DynResource for wgpu_hal::vulkan::QuerySet

Available on vulkan only.
source§

impl DynResource for wgpu_hal::vulkan::Queue

Available on vulkan only.
source§

impl DynResource for wgpu_hal::vulkan::RenderPipeline

Available on vulkan only.
source§

impl DynResource for wgpu_hal::vulkan::Sampler

Available on vulkan only.
source§

impl DynResource for Surface

Available on vulkan only.
source§

impl DynResource for SurfaceTexture

Available on vulkan only.
source§

impl DynResource for wgpu_hal::vulkan::Texture

Available on vulkan only.
source§

impl DynResource for wgpu_hal::vulkan::TextureView

Available on vulkan only.