[go: up one dir, main page]

[][src]Struct wgpu_core::track::TrackerSet

pub struct TrackerSet {
    pub buffers: ResourceTracker<BufferState>,
    pub textures: ResourceTracker<TextureState>,
    pub views: ResourceTracker<PhantomData<TextureViewId>>,
    pub bind_groups: ResourceTracker<PhantomData<BindGroupId>>,
    pub samplers: ResourceTracker<PhantomData<SamplerId>>,
    pub compute_pipes: ResourceTracker<PhantomData<ComputePipelineId>>,
    pub render_pipes: ResourceTracker<PhantomData<RenderPipelineId>>,
}

A set of trackers for all relevant resources.

Fields

buffers: ResourceTracker<BufferState>textures: ResourceTracker<TextureState>views: ResourceTracker<PhantomData<TextureViewId>>bind_groups: ResourceTracker<PhantomData<BindGroupId>>samplers: ResourceTracker<PhantomData<SamplerId>>compute_pipes: ResourceTracker<PhantomData<ComputePipelineId>>render_pipes: ResourceTracker<PhantomData<RenderPipelineId>>

Methods

impl TrackerSet[src]

pub fn new(backend: Backend) -> Self[src]

Create an empty set.

pub fn clear(&mut self)[src]

Clear all the trackers.

pub fn optimize(&mut self)[src]

Try to optimize the tracking representation.

pub fn merge_extend(&mut self, other: &Self)[src]

Merge all the trackers of another instance by extending the usage. Panics on a conflict.

pub fn backend(&self) -> Backend[src]

Trait Implementations

impl Debug for TrackerSet[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.