pub struct SceneRenderScratch { /* private fields */ }Expand description
PF.7 (C6) — reusable scratch for the composed scene render: the
per-grid temp framebuffer/z-buffer pair (was two full-frame vec!
allocations + initialising writes per call — ≈7.4 MB at 720p, ×16
under 4×SSAA), the per-grid light scratch, and the phase-A mip map.
Own one per renderer and pass it to
render_scene_composed_with_materials_scratch; the buffers grow to
the frame size on first use and are reused verbatim afterwards (every
pixel the render reads is filled per grid first, so no per-frame
clear is needed).
Trait Implementations§
Source§impl Default for SceneRenderScratch
impl Default for SceneRenderScratch
Source§fn default() -> SceneRenderScratch
fn default() -> SceneRenderScratch
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SceneRenderScratch
impl RefUnwindSafe for SceneRenderScratch
impl Send for SceneRenderScratch
impl Sync for SceneRenderScratch
impl Unpin for SceneRenderScratch
impl UnsafeUnpin for SceneRenderScratch
impl UnwindSafe for SceneRenderScratch
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