pub struct TransientUse {
pub state: ResourceState,
pub queue: Option<Handle<Queue>>,
}Expand description
What the last frame to use a pooled resource left it in.
The source scope of the next frame’s first barrier against that resource.
ResourceState::Undefined with no queue is the honest answer for a
resource no frame has touched yet — nothing has been written, so there is
nothing to order against, which is exactly what Undefined means.
Fields§
§state: ResourceStateThe state the last access left it in.
queue: Option<Handle<Queue>>The queue that access ran on, so a frame that uses the resource from a different queue emits the acquire half of a queue-family transfer rather than reading memory the other queue never released.
Trait Implementations§
Source§impl Clone for TransientUse
impl Clone for TransientUse
Source§fn clone(&self) -> TransientUse
fn clone(&self) -> TransientUse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TransientUse
Source§impl Debug for TransientUse
impl Debug for TransientUse
Source§impl Default for TransientUse
impl Default for TransientUse
Source§fn default() -> TransientUse
fn default() -> TransientUse
Returns the “default value” for a type. Read more
impl Eq for TransientUse
Source§impl PartialEq for TransientUse
impl PartialEq for TransientUse
impl StructuralPartialEq for TransientUse
Auto Trait Implementations§
impl Forget for TransientUse
impl Freeze for TransientUse
impl RefUnwindSafe for TransientUse
impl Send for TransientUse
impl Sync for TransientUse
impl Unpin for TransientUse
impl UnsafeUnpin for TransientUse
impl UnwindSafe for TransientUse
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more