pub struct HotReloadApplyParts<'a> {
pub backend: &'a mut dyn RenderBackend,
pub world_reload: &'a Option<WorldReloadState>,
pub last_fog_settings: &'a mut Option<FogSettings>,
}Expand description
Disjoint mutable screen of the GraphicsSystem fields the hot-reload passes
edit in one tick: the active backend, the texture-name map for runtime
decal / emitter spawn, and the fog bookkeeping the world.jsonl reload pass
dedupes against. Returned by GraphicsSystem::hot_reload_apply_parts so the
binary-only DebugHook::tick drive can apply the reload passes from outside
the per-system step without the library depending on it. The reload
catalogue and in-flight state live on the debug side
(crate::debug::hot_reload), built from
HotReloadSources.
The library never constructs this; the fields are read from the debug
drive alone.
Fields§
§backend: &'a mut dyn RenderBackendThe live render backend.
world_reload: &'a Option<WorldReloadState>The in-flight world reload, when one is running.
last_fog_settings: &'a mut Option<FogSettings>The fog settings last pushed, so a reload can detect a change.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for HotReloadApplyParts<'a>
impl<'a> !Sync for HotReloadApplyParts<'a>
impl<'a> !UnwindSafe for HotReloadApplyParts<'a>
impl<'a> Freeze for HotReloadApplyParts<'a>
impl<'a> Send for HotReloadApplyParts<'a>
impl<'a> Unpin for HotReloadApplyParts<'a>
impl<'a> UnsafeUnpin for HotReloadApplyParts<'a>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
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> 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> ⓘ
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> ⓘ
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