[−][src]Type Definition wgpu_core::track::BufferState
type BufferState = Unit<BufferUsage>;
Implementations
impl BufferState[src]
pub fn with_usage(usage: BufferUsage) -> Self[src]
Trait Implementations
impl Default for BufferState[src]
impl ResourceState for BufferState[src]
type Id = BufferId
Corresponding HUB identifier.
type Selector = ()
A type specifying the sub-resources.
type Usage = BufferUsage
Usage type for a Unit of a sub-resource.
fn query(&self, _selector: Self::Selector) -> Option<Self::Usage>[src]
fn change(
&mut self,
id: Self::Id,
_selector: Self::Selector,
usage: Self::Usage,
output: Option<&mut Vec<PendingTransition<Self>>>
) -> Result<(), PendingTransition<Self>>[src]
&mut self,
id: Self::Id,
_selector: Self::Selector,
usage: Self::Usage,
output: Option<&mut Vec<PendingTransition<Self>>>
) -> Result<(), PendingTransition<Self>>
fn merge(
&mut self,
id: Self::Id,
other: &Self,
output: Option<&mut Vec<PendingTransition<Self>>>
) -> Result<(), PendingTransition<Self>>[src]
&mut self,
id: Self::Id,
other: &Self,
output: Option<&mut Vec<PendingTransition<Self>>>
) -> Result<(), PendingTransition<Self>>