Skip to main content

CesChunkJob

Struct CesChunkJob 

Source
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: TerrainGpu

Current terrain params (uploaded with the batch).

§res: u32§executes: u64

Number 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

Source

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

Source§

type Memory = <<CesChunkJob as GodotClass>::Base as Bounds>::Memory

Defines the memory strategy of the static type.
Source§

type Declarer = DeclUser

Whether this class is a core Godot class provided by the engine, or declared by the user as a Rust struct.
Source§

impl GodotClass for CesChunkJob

Source§

type Base = RefCounted

The immediate superclass of T. This is always a Godot engine class.
Source§

fn class_id() -> ClassId

Globally unique class ID, linked to the name under which the class is registered in Godot. Read more
§

const INIT_LEVEL: InitLevel = <Self::Base as GodotClass>::INIT_LEVEL

Initialization level, during which this class should be initialized with Godot. Read more
§

fn inherits<Base>() -> bool
where Base: GodotClass,

Returns whether Self inherits from Base. Read more
Source§

impl Inherits<Object> for CesChunkJob

§

const IS_SAME_CLASS: bool = false

True iff Self == Base. Read more
Source§

impl Inherits<RefCounted> for CesChunkJob

§

const IS_SAME_CLASS: bool = false

True iff Self == Base. Read more
Source§

impl WithBaseField for CesChunkJob

Source§

fn to_gd(&self) -> Gd<CesChunkJob>

Returns the Gd pointer containing this object. Read more
§

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>

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,

Defers the given closure to run during idle time. Read more
§

fn run_deferred_gd<F>(&mut self, gd_function: F)
where F: FnOnce(Gd<Self>) + 'static,

Defers the given closure to run during idle time. Read more
Source§

impl WithSignals for CesChunkJob

Source§

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

Source§

fn signals(&mut self) -> Self::SignalCollection<'_, Self>

Access user-defined signals of the current object self. Read more
Source§

impl ImplementsGodotApi for CesChunkJob

Source§

impl ImplementsGodotExports for CesChunkJob

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Inherits<T> for T
where T: GodotClass,

§

const IS_SAME_CLASS: bool = true

True iff Self == Base. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<C> ObjectToOwned<C> for C
where C: WithBaseField,

§

fn object_to_owned(&self) -> Gd<C>

Converts the object reference to an owned Gd<T>.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> UniformObjectDeref<DeclUser> for T
where T: WithBaseField,

§

type TargetRef<'a> = GdRef<'a, T>

§

type TargetMut<'a> = GdMut<'a, T>

§

fn object_as_ref<'a>( gd: &'a Gd<T>, ) -> <T as UniformObjectDeref<DeclUser>>::TargetRef<'a>

§

fn object_as_mut<'a>( gd: &'a mut Gd<T>, ) -> <T as UniformObjectDeref<DeclUser>>::TargetMut<'a>