Struct WorldDrawUsage
#[non_exhaustive]pub struct WorldDrawUsage {
pub lines: u32,
pub line_capacity: u32,
pub quads: u32,
pub quad_capacity: u32,
pub instances_used: u32,
pub instances_capacity: u32,
}Expand description
Queued primitive counts and fixed capacities, shared across both depth modes.
instances_capacity is the per-view budget of 16,384 model copies. It is reserved
when the view’s storage is created and is never grown during submission.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.lines: u32Lines queued for this view after near-plane clipping.
line_capacity: u32Maximum lines per view.
quads: u32Quads queued for this view.
quad_capacity: u32Maximum quads per view.
instances_used: u32Model copies accepted for this view. Culled copies are not included.
A call may pass at most instances_capacity
copies; that bound is applied before culling.
instances_capacity: u32Maximum model copies per view, and the most copies one call may pass.
Implementations§
§impl WorldDrawUsage
impl WorldDrawUsage
Trait Implementations§
§impl Clone for WorldDrawUsage
impl Clone for WorldDrawUsage
§fn clone(&self) -> WorldDrawUsage
fn clone(&self) -> WorldDrawUsage
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 moreimpl Copy for WorldDrawUsage
§impl Debug for WorldDrawUsage
impl Debug for WorldDrawUsage
impl Eq for WorldDrawUsage
§impl PartialEq for WorldDrawUsage
impl PartialEq for WorldDrawUsage
impl StructuralPartialEq for WorldDrawUsage
Auto Trait Implementations§
impl Freeze for WorldDrawUsage
impl RefUnwindSafe for WorldDrawUsage
impl Send for WorldDrawUsage
impl Sync for WorldDrawUsage
impl Unpin for WorldDrawUsage
impl UnsafeUnpin for WorldDrawUsage
impl UnwindSafe for WorldDrawUsage
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