pub struct CoverageReadbackState {
pub inflight: bool,
pub pending_snapshot: Option<Vec<(MeshKey, u32)>>,
}Expand description
Per-frame state for the GPU coverage readback loop.
The renderer dispatches coverage after geometry, copies the
counts into a CPU-mappable buffer, and kicks a mapAsync that
resolves on a future frame. To keep the path single-buffered,
inflight short-circuits the next kick while a prior mapAsync
hasn’t yet resolved; pending_snapshot carries the resolved
(MeshKey, count) pairs back to the next render frame which
calls MeshCoverage::ingest.
Fields§
§inflight: bool§pending_snapshot: Option<Vec<(MeshKey, u32)>>Trait Implementations§
Source§impl Default for CoverageReadbackState
impl Default for CoverageReadbackState
Source§fn default() -> CoverageReadbackState
fn default() -> CoverageReadbackState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CoverageReadbackState
impl RefUnwindSafe for CoverageReadbackState
impl Send for CoverageReadbackState
impl Sync for CoverageReadbackState
impl Unpin for CoverageReadbackState
impl UnsafeUnpin for CoverageReadbackState
impl UnwindSafe for CoverageReadbackState
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().