pub struct SceneBudget { /* private fields */ }Expand description
Explicit upper bounds for engine-owned ordinary-scene work.
Limits may be zero to construct a background-only scene. Retained bytes count logical command values and owned polyline storage. Allocation bytes additionally bound committed spare command-vector capacity; allocator bookkeeping and transactional replacement overlap are excluded. Vertex and upload limits use the renderer’s conservative triangle-list estimate, which is checked again after tessellation.
Implementations§
Source§impl SceneBudget
impl SceneBudget
Sourcepub const fn new(
max_commands: usize,
max_points: usize,
max_tessellated_vertices: usize,
max_retained_bytes: usize,
max_allocation_bytes: usize,
max_upload_bytes: usize,
max_draw_batches: usize,
) -> Self
pub const fn new( max_commands: usize, max_points: usize, max_tessellated_vertices: usize, max_retained_bytes: usize, max_allocation_bytes: usize, max_upload_bytes: usize, max_draw_batches: usize, ) -> Self
Builds a complete budget for ordinary scene construction and rendering.
Sourcepub const fn max_commands(self) -> usize
pub const fn max_commands(self) -> usize
Returns the maximum accepted command count.
Sourcepub const fn max_points(self) -> usize
pub const fn max_points(self) -> usize
Returns the maximum retained polyline point count.
Sourcepub const fn max_tessellated_vertices(self) -> usize
pub const fn max_tessellated_vertices(self) -> usize
Returns the maximum conservatively estimated vertex count.
Sourcepub const fn max_retained_bytes(self) -> usize
pub const fn max_retained_bytes(self) -> usize
Returns the maximum retained command payload bytes.
Sourcepub const fn max_allocation_bytes(self) -> usize
pub const fn max_allocation_bytes(self) -> usize
Returns the maximum committed command and polyline allocation bytes.
Sourcepub const fn max_upload_bytes(self) -> usize
pub const fn max_upload_bytes(self) -> usize
Returns the maximum generated vertex upload bytes.
Sourcepub const fn max_draw_batches(self) -> usize
pub const fn max_draw_batches(self) -> usize
Returns the maximum draw-batch count.
Trait Implementations§
Source§impl Clone for SceneBudget
impl Clone for SceneBudget
impl Copy for SceneBudget
Source§impl Debug for SceneBudget
impl Debug for SceneBudget
impl Eq for SceneBudget
Source§impl PartialEq for SceneBudget
impl PartialEq for SceneBudget
impl StructuralPartialEq for SceneBudget
Auto Trait Implementations§
impl Freeze for SceneBudget
impl RefUnwindSafe for SceneBudget
impl Send for SceneBudget
impl Sync for SceneBudget
impl Unpin for SceneBudget
impl UnsafeUnpin for SceneBudget
impl UnwindSafe for SceneBudget
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.