Trait wgpu_core::hub::Resource

source ·
pub trait Resource {
    const TYPE: &'static str;

    // Required method
    fn life_guard(&self) -> &LifeGuard;

    // Provided method
    fn label(&self) -> &str { ... }
}

Required Associated Constants§

source

const TYPE: &'static str

Required Methods§

Provided Methods§

source

fn label(&self) -> &str

Implementors§

source§

impl Resource for Surface

source§

const TYPE: &'static str = "Surface"

source§

impl<A: Api> Resource for BindGroupLayout<A>

source§

const TYPE: &'static str = "BindGroupLayout"

source§

impl<A: Api> Resource for PipelineLayout<A>

source§

const TYPE: &'static str = "PipelineLayout"

source§

impl<A: Api> Resource for Adapter<A>

source§

const TYPE: &'static str = "Adapter"

source§

impl<A: Api> Resource for ComputePipeline<A>

source§

const TYPE: &'static str = "ComputePipeline"

source§

impl<A: Api> Resource for RenderPipeline<A>

source§

const TYPE: &'static str = "RenderPipeline"

source§

impl<A: Api> Resource for ShaderModule<A>

source§

const TYPE: &'static str = "ShaderModule"

source§

impl<A: Api> Resource for Buffer<A>

source§

const TYPE: &'static str = "Buffer"

source§

impl<A: Api> Resource for QuerySet<A>

source§

const TYPE: &'static str = "QuerySet"

source§

impl<A: Api> Resource for Sampler<A>

source§

const TYPE: &'static str = "Sampler"

source§

impl<A: Api> Resource for StagingBuffer<A>

source§

const TYPE: &'static str = "StagingBuffer"

source§

impl<A: Api> Resource for Texture<A>

source§

const TYPE: &'static str = "Texture"

source§

impl<A: Api> Resource for TextureView<A>

source§

const TYPE: &'static str = "TextureView"

source§

impl<A: HalApi> Resource for BindGroup<A>

source§

const TYPE: &'static str = "BindGroup"

source§

impl<A: HalApi> Resource for CommandBuffer<A>

source§

const TYPE: &'static str = "CommandBuffer"

source§

impl<A: HalApi> Resource for RenderBundle<A>

source§

const TYPE: &'static str = "RenderBundle"

source§

impl<A: HalApi> Resource for Device<A>

source§

const TYPE: &'static str = "Device"