Trait wgpu_core::track::ResourceUses

source ·
pub(crate) trait ResourceUses:
    Debug
    + BitAnd<Output = Self>
    + BitOr<Output = Self>
    + PartialEq
    + Sized
    + Copy {
    type Selector: Debug;

    const EXCLUSIVE: Self;

    // Required methods
    fn bits(self) -> u16;
    fn all_ordered(self) -> bool;
    fn any_exclusive(self) -> bool;
}
Expand description

The uses that a resource or subresource can be in.

Required Associated Types§

source

type Selector: Debug

The selector used by this resource.

Required Associated Constants§

source

const EXCLUSIVE: Self

All flags that are exclusive.

Required Methods§

source

fn bits(self) -> u16

Turn the resource into a pile of bits.

source

fn all_ordered(self) -> bool

Returns true if the all the uses are ordered.

source

fn any_exclusive(self) -> bool

Returns true if any of the uses are exclusive.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ResourceUses for AccelerationStructureUses

source§

impl ResourceUses for BufferUses

source§

const EXCLUSIVE: Self = Self::EXCLUSIVE

source§

type Selector = ()

source§

fn bits(self) -> u16

source§

fn all_ordered(self) -> bool

source§

fn any_exclusive(self) -> bool

source§

impl ResourceUses for TextureUses

source§

const EXCLUSIVE: Self = Self::EXCLUSIVE

source§

type Selector = TextureSelector

source§

fn bits(self) -> u16

source§

fn all_ordered(self) -> bool

source§

fn any_exclusive(self) -> bool

Implementors§