#[non_exhaustive]pub struct ComputeCounts {
pub calls: u64,
}Expand description
info.compute.
three.js has a second field, frameCalls, cleared by Info.reset() — which
its animation loop calls at the top of the frame callback
(Animation.js:81), before renderer.compute() runs. This port has no
animation loop and resets in Renderer::render, which runs after the
frame’s compute calls, so a frame_calls here would always read zero. The
cumulative count is the honest one; the per-frame question “did this frame
build a compute pipeline” is answered by BuildCounts instead.
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.calls: u64info.compute.calls: Renderer::compute() calls since startup,
onInit’s recursive call included — three counts it too.
Trait Implementations§
Source§impl Clone for ComputeCounts
impl Clone for ComputeCounts
impl Copy for ComputeCounts
Source§impl Debug for ComputeCounts
impl Debug for ComputeCounts
Source§impl Default for ComputeCounts
impl Default for ComputeCounts
impl Eq for ComputeCounts
Source§impl PartialEq for ComputeCounts
impl PartialEq for ComputeCounts
impl StructuralPartialEq for ComputeCounts
Auto Trait Implementations§
impl Freeze for ComputeCounts
impl RefUnwindSafe for ComputeCounts
impl Send for ComputeCounts
impl Sync for ComputeCounts
impl Unpin for ComputeCounts
impl UnsafeUnpin for ComputeCounts
impl UnwindSafe for ComputeCounts
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<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
Compare self to
key and return true if they are equal.