struct CacheRow {
cpu_blocks: Box<[GpuBlockData; 1024]>,
min_dirty: u16,
max_dirty: u16,
}
Expand description
Tracks the state of each row in the GPU cache texture.
Fields§
§cpu_blocks: Box<[GpuBlockData; 1024]>
Mirrored block data on CPU for this row. We store a copy of the data on the CPU side to improve upload batching.
min_dirty: u16
The first offset in this row that is dirty.
max_dirty: u16
The last offset in this row that is dirty.
Implementations§
Auto Trait Implementations§
impl Freeze for CacheRow
impl RefUnwindSafe for CacheRow
impl Send for CacheRow
impl Sync for CacheRow
impl Unpin for CacheRow
impl UnwindSafe for CacheRow
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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more