pub struct StreamingConfig {Show 19 fields
pub max_loaded_chunks: usize,
pub lod_distances: [f32; 5],
pub max_memory_mb: u64,
pub chunk_size: f32,
pub streaming_radius: f32,
pub vertical_streaming_radius: f32,
pub enable_frustum_culling: bool,
pub enable_occlusion_culling: bool,
pub enable_hlod: bool,
pub enable_virtual_textures: bool,
pub enable_impostor_billboards: bool,
pub max_concurrent_loads: usize,
pub max_concurrent_unloads: usize,
pub lod_bias: f32,
pub screen_height_pixels: u32,
pub fov_vertical_rad: f32,
pub eviction_policy: EvictionPolicy,
pub prefetch_distance: f32,
pub min_lod_retain_frames: u64,
}Fields§
§max_loaded_chunks: usize§lod_distances: [f32; 5]§max_memory_mb: u64§chunk_size: f32§streaming_radius: f32§vertical_streaming_radius: f32§enable_frustum_culling: bool§enable_occlusion_culling: bool§enable_hlod: bool§enable_virtual_textures: bool§enable_impostor_billboards: bool§max_concurrent_loads: usize§max_concurrent_unloads: usize§lod_bias: f32§screen_height_pixels: u32§fov_vertical_rad: f32§eviction_policy: EvictionPolicy§prefetch_distance: f32§min_lod_retain_frames: u64Implementations§
Source§impl StreamingConfig
impl StreamingConfig
pub fn new() -> Self
pub fn with_quality_preset(preset: QualityPreset) -> Self
pub fn lod_for_distance(&self, dist: f32) -> LodLevel
pub fn streaming_radius_chunks(&self) -> i32
pub fn memory_budget_per_lod(&self, lod: &LodLevel) -> u64
Trait Implementations§
Source§impl Clone for StreamingConfig
impl Clone for StreamingConfig
Source§impl Debug for StreamingConfig
impl Debug for StreamingConfig
Auto Trait Implementations§
impl Freeze for StreamingConfig
impl RefUnwindSafe for StreamingConfig
impl Send for StreamingConfig
impl Sync for StreamingConfig
impl Unpin for StreamingConfig
impl UnsafeUnpin for StreamingConfig
impl UnwindSafe for StreamingConfig
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.