pub struct CesChunkJob {
pub gpu: ChunkGpuResources,
pub stage: Option<ChunkStage>,
pub terrain: TerrainGpu,
pub res: u32,
pub executes: u64,
pub gpu_ms: Vec<(&'static str, f64)>,
/* private fields */
}Expand description
Render-thread job owning the chunk graph + GPU resources. (CEL-58 pattern:
a separate RefCounted so inline callbacks can’t re-enter the node’s borrow.)
Fields§
§gpu: ChunkGpuResources§stage: Option<ChunkStage>Staged by the main thread; drained on the render thread.
terrain: TerrainGpuCurrent terrain params (uploaded with the batch).
res: u32§executes: u64Number of graph executes that actually ran (consumed a stage). Stays flat on a stationary camera — the no-readback / cache win the HUD verifies.
gpu_ms: Vec<(&'static str, f64)>Per-stage GPU milliseconds from the previous execute: (node name, ms)
for each graph node that ran (chunk-upload, chunk-realize, and any
future pass). Read by the node for the HUD breakdown.
Implementations§
Source§impl CesChunkJob
impl CesChunkJob
Sourcepub fn create(
mm_rid: Rid,
budget: u32,
res: u32,
tile_res: u32,
radius: f32,
bump_enable: f32,
terrain: TerrainGpu,
scatter: Vec<ScatterConfig>,
) -> Gd<Self>
pub fn create( mm_rid: Rid, budget: u32, res: u32, tile_res: u32, radius: f32, bump_enable: f32, terrain: TerrainGpu, scatter: Vec<ScatterConfig>, ) -> Gd<Self>
Build a job targeting mm_rid (or Rid::Invalid to self-create the
multimesh) with capacity budget chunks at resolution res.
Trait Implementations§
Source§impl Bounds for CesChunkJob
impl Bounds for CesChunkJob
Source§impl GodotClass for CesChunkJob
impl GodotClass for CesChunkJob
Source§impl Inherits<Object> for CesChunkJob
impl Inherits<Object> for CesChunkJob
§const IS_SAME_CLASS: bool = false
const IS_SAME_CLASS: bool = false
True iff
Self == Base. Read moreSource§impl Inherits<RefCounted> for CesChunkJob
impl Inherits<RefCounted> for CesChunkJob
§const IS_SAME_CLASS: bool = false
const IS_SAME_CLASS: bool = false
True iff
Self == Base. Read moreSource§impl WithBaseField for CesChunkJob
impl WithBaseField for CesChunkJob
Source§fn to_gd(&self) -> Gd<CesChunkJob>
fn to_gd(&self) -> Gd<CesChunkJob>
Returns the
Gd pointer containing this object. Read more§fn base(&self) -> BaseRef<'_, Self>
fn base(&self) -> BaseRef<'_, Self>
Returns a shared reference guard, suitable for calling
&self engine methods on this object. Read more§fn base_mut(&mut self) -> BaseMut<'_, Self>
fn base_mut(&mut self) -> BaseMut<'_, Self>
Returns an exclusive reference guard, suitable for calling
&self/&mut self engine methods on this object. Read more§fn run_deferred<F>(&mut self, mut_self_method: F)where
F: FnOnce(&mut Self) + 'static,
fn run_deferred<F>(&mut self, mut_self_method: F)where
F: FnOnce(&mut Self) + 'static,
§fn run_deferred_gd<F>(&mut self, gd_function: F)where
F: FnOnce(Gd<Self>) + 'static,
fn run_deferred_gd<F>(&mut self, gd_function: F)where
F: FnOnce(Gd<Self>) + 'static,
Source§impl WithSignals for CesChunkJob
impl WithSignals for CesChunkJob
Source§type SignalCollection<'c, C: WithSignals> = __godot_Signals_CesChunkJob<'c, C>
type SignalCollection<'c, C: WithSignals> = __godot_Signals_CesChunkJob<'c, C>
The associated struct listing all signals of this class. Read more
Source§impl WithUserSignals for CesChunkJob
impl WithUserSignals for CesChunkJob
impl ImplementsGodotApi for CesChunkJob
impl ImplementsGodotExports for CesChunkJob
Auto Trait Implementations§
impl Freeze for CesChunkJob
impl !RefUnwindSafe for CesChunkJob
impl !Send for CesChunkJob
impl !Sync for CesChunkJob
impl Unpin for CesChunkJob
impl UnsafeUnpin for CesChunkJob
impl !UnwindSafe for CesChunkJob
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
§impl<T> Inherits<T> for Twhere
T: GodotClass,
impl<T> Inherits<T> for Twhere
T: GodotClass,
§const IS_SAME_CLASS: bool = true
const IS_SAME_CLASS: bool = true
True iff
Self == Base. Read more§impl<C> ObjectToOwned<C> for Cwhere
C: WithBaseField,
impl<C> ObjectToOwned<C> for Cwhere
C: WithBaseField,
§fn object_to_owned(&self) -> Gd<C>
fn object_to_owned(&self) -> Gd<C>
Converts the object reference to an owned
Gd<T>.