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 Context

Source§

impl DynResource for Encoder

Source§

impl DynResource for Resource

Source§

impl DynResource for AccelerationStructure

Available on gles only.
Source§

impl DynResource for Adapter

Available on gles only.
Source§

impl DynResource for BindGroup

Available on gles only.
Source§

impl DynResource for BindGroupLayout

Available on gles only.
Source§

impl DynResource for Buffer

Available on gles only.
Source§

impl DynResource for CommandBuffer

Available on gles only.
Source§

impl DynResource for CommandEncoder

Available on gles only.
Source§

impl DynResource for ComputePipeline

Available on gles only.
Source§

impl DynResource for Device

Available on gles only.
Source§

impl DynResource for Fence

Available on gles only.
Source§

impl DynResource for PipelineCache

Available on gles only.
Source§

impl DynResource for PipelineLayout

Available on gles only.
Source§

impl DynResource for QuerySet

Available on gles only.
Source§

impl DynResource for Queue

Available on gles only.
Source§

impl DynResource for RenderPipeline

Available on gles only.
Source§

impl DynResource for Sampler

Available on gles only.
Source§

impl DynResource for ShaderModule

Available on gles only.
Source§

impl DynResource for Texture

Available on gles only.
Source§

impl DynResource for TextureView

Available on gles only.