Trait wgpu_hal::dynamic::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

source§

impl DynResource for wgpu_hal::vulkan::ShaderModule

source§

impl DynResource for Context

source§

impl DynResource for Encoder

source§

impl DynResource for Resource

source§

impl DynResource for wgpu_hal::gles::egl::Instance

source§

impl DynResource for wgpu_hal::gles::egl::Surface

source§

impl DynResource for wgpu_hal::gles::AccelerationStructure

source§

impl DynResource for wgpu_hal::gles::Adapter

source§

impl DynResource for wgpu_hal::gles::BindGroup

source§

impl DynResource for wgpu_hal::gles::BindGroupLayout

source§

impl DynResource for wgpu_hal::gles::Buffer

source§

impl DynResource for wgpu_hal::gles::CommandBuffer

source§

impl DynResource for wgpu_hal::gles::CommandEncoder

source§

impl DynResource for wgpu_hal::gles::ComputePipeline

source§

impl DynResource for wgpu_hal::gles::Device

source§

impl DynResource for wgpu_hal::gles::Fence

source§

impl DynResource for wgpu_hal::gles::PipelineCache

source§

impl DynResource for wgpu_hal::gles::PipelineLayout

source§

impl DynResource for wgpu_hal::gles::QuerySet

source§

impl DynResource for wgpu_hal::gles::Queue

source§

impl DynResource for wgpu_hal::gles::RenderPipeline

source§

impl DynResource for wgpu_hal::gles::Sampler

source§

impl DynResource for wgpu_hal::gles::ShaderModule

source§

impl DynResource for wgpu_hal::gles::Texture

source§

impl DynResource for wgpu_hal::gles::TextureView

source§

impl DynResource for wgpu_hal::vulkan::AccelerationStructure

source§

impl DynResource for wgpu_hal::vulkan::Adapter

source§

impl DynResource for wgpu_hal::vulkan::BindGroup

source§

impl DynResource for wgpu_hal::vulkan::BindGroupLayout

source§

impl DynResource for wgpu_hal::vulkan::Buffer

source§

impl DynResource for wgpu_hal::vulkan::CommandBuffer

source§

impl DynResource for wgpu_hal::vulkan::CommandEncoder

source§

impl DynResource for wgpu_hal::vulkan::ComputePipeline

source§

impl DynResource for wgpu_hal::vulkan::Device

source§

impl DynResource for wgpu_hal::vulkan::Instance

source§

impl DynResource for wgpu_hal::vulkan::PipelineCache

source§

impl DynResource for wgpu_hal::vulkan::PipelineLayout

source§

impl DynResource for wgpu_hal::vulkan::QuerySet

source§

impl DynResource for wgpu_hal::vulkan::Queue

source§

impl DynResource for wgpu_hal::vulkan::RenderPipeline

source§

impl DynResource for wgpu_hal::vulkan::Sampler

source§

impl DynResource for wgpu_hal::vulkan::Surface

source§

impl DynResource for SurfaceTexture

source§

impl DynResource for wgpu_hal::vulkan::Texture

source§

impl DynResource for wgpu_hal::vulkan::TextureView