pub struct TextureHandle { /* private fields */ }Expand description
One side of a PassBuilder::read_* / write_* declaration. The
resource is a small dense index into the graph’s resource arena; the
version increments on every write so a read-after-write chain
(main → decals → fog writing the same hdr_resolve) is an unambiguous
DAG.
Each TextureHandle / BufferHandle pairs the resource id with the
version it refers to. write_* returns a new handle pointing at the
post-write version; the old handle stays valid (and refers to the
pre-write version) so a pass can still legally read the prior content
if it wants.
Trait Implementations§
Source§impl Clone for TextureHandle
impl Clone for TextureHandle
Source§fn clone(&self) -> TextureHandle
fn clone(&self) -> TextureHandle
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 TextureHandle
Source§impl Debug for TextureHandle
impl Debug for TextureHandle
impl Eq for TextureHandle
Source§impl Hash for TextureHandle
impl Hash for TextureHandle
Source§impl PartialEq for TextureHandle
impl PartialEq for TextureHandle
impl StructuralPartialEq for TextureHandle
Auto Trait Implementations§
impl Freeze for TextureHandle
impl RefUnwindSafe for TextureHandle
impl Send for TextureHandle
impl Sync for TextureHandle
impl Unpin for TextureHandle
impl UnsafeUnpin for TextureHandle
impl UnwindSafe for TextureHandle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.