#[non_exhaustive]pub struct BuildCounts {
pub programs_compiled: u64,
pub pipelines_built: u64,
pub geometries_uploaded: u64,
pub buffers_written: u64,
pub textures_uploaded: u64,
pub buffers_created: u64,
pub views_created: u64,
pub samplers_created: u64,
pub bind_groups_created: u64,
}Expand description
The per-frame build block: the work a steady frame must not do.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.programs_compiled: u64NodeBuilder::build calls — a material’s WGSL generated, and compiled
into a programs entry if that WGSL is new.
pipelines_built: u64Render pipelines created for a program and a pass state.
geometries_uploaded: u64Geometries uploaded to the GPU (Geometries.get()’s misses).
buffers_written: u64Attribute and index buffers written as part of those uploads — four for
a geometry with position, normal, uv and an index — plus one for each
InstancedBufferAttribute (an InstancedMesh’s instanceMatrix or
instanceColor) written because it is new or its version moved
(issue #89). Per-draw uniforms (morph influences, bone matrices) are
written into a buffer the draw already has, which is not a build and is
not counted here or anywhere.
textures_uploaded: u64Textures uploaded: 2D, cube and the morph data-array textures.
buffers_created: u64GPU buffers created for bindings: a draw’s uniform groups, bone
matrices and morph influences the first time it is drawn, an
InstancedBufferAttribute’s buffer the first time it is drawn or when
it outgrows the one it has, a range() / uniformArray() /
instanced-attribute buffer, an instancedArray()’s storage
(issue #137).
views_created: u64Texture views created for bindings — one per texture and view dimension, and again when a render target is re-allocated.
samplers_created: u64Samplers created — one per distinct filter / wrap / compare combination for the renderer’s life.
bind_groups_created: u64Bind groups created — one per draw group the first time it is drawn, and again when one of its resources is replaced.
Implementations§
Trait Implementations§
Source§impl Clone for BuildCounts
impl Clone for BuildCounts
impl Copy for BuildCounts
Source§impl Debug for BuildCounts
impl Debug for BuildCounts
Source§impl Default for BuildCounts
impl Default for BuildCounts
impl Eq for BuildCounts
Source§impl PartialEq for BuildCounts
impl PartialEq for BuildCounts
impl StructuralPartialEq for BuildCounts
Auto Trait Implementations§
impl Freeze for BuildCounts
impl RefUnwindSafe for BuildCounts
impl Send for BuildCounts
impl Sync for BuildCounts
impl Unpin for BuildCounts
impl UnsafeUnpin for BuildCounts
impl UnwindSafe for BuildCounts
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.