wgpu_hal

Trait 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.