pub enum BuilderRoute {
GpuNoise,
CpuNoise,
GpuCustom,
CpuCustom,
CpuCustomAsync,
}Expand description
The terrain paths the planet routes between. Derived from a builder’s
CesBuilder::device and CesBuilder::builtin_shader, plus — for the
CPU-custom pair — whether the GDScript defines BAKE_REQUESTED. NOT an
exported field.
Variants§
GpuNoise
Built-in GPU noise (rich inline shader, driven by knobs).
CpuNoise
Built-in noise baked on CPU worker threads.
GpuCustom
A custom builder on BuilderDevice::GPU — a .glsl surface.
CpuCustom
A custom builder on BuilderDevice::CPU — GDScript height/color/
normal, baked synchronously on the main thread.
CpuCustomAsync
A custom builder on BuilderDevice::CPU defining _bake_requested —
the planet hands it chunks and it submits surfaces back whenever they
are ready (threads, network, disk). See crate::async_bake.
Trait Implementations§
Source§impl Clone for BuilderRoute
impl Clone for BuilderRoute
Source§fn clone(&self) -> BuilderRoute
fn clone(&self) -> BuilderRoute
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BuilderRoute
impl Debug for BuilderRoute
Source§impl PartialEq for BuilderRoute
impl PartialEq for BuilderRoute
Source§fn eq(&self, other: &BuilderRoute) -> bool
fn eq(&self, other: &BuilderRoute) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for BuilderRoute
impl Eq for BuilderRoute
impl StructuralPartialEq for BuilderRoute
Auto Trait Implementations§
impl Freeze for BuilderRoute
impl RefUnwindSafe for BuilderRoute
impl Send for BuilderRoute
impl Sync for BuilderRoute
impl Unpin for BuilderRoute
impl UnsafeUnpin for BuilderRoute
impl UnwindSafe for BuilderRoute
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