#[repr(C)]pub struct SsSceneStats {
pub players: u32,
pub prims: u32,
pub draw_calls: u32,
pub group_layers: u32,
pub uploaded_bytes: u64,
pub gpu_pass_time_ns: u64,
}Expand description
What the last frame cost, flattened for the ABI.
gpu_pass_time_ns is 0 when the adapter has no timestamp query, or before
the first measurement has come back — it is read without stalling the
pipeline, so it lags a frame or two.
Fields§
§players: u32Players that contributed geometry this frame.
prims: u32Primitives in the frame: parts, shape fans and effect particles.
draw_calls: u32Draw calls recorded. The gap from prims is draw-call merging headroom.
group_layers: u32Players faded as one layer this frame (ss_scene_set_group_alpha), each
a render pass and a window-sized layer of its own.
uploaded_bytes: u64Bytes written to the frame’s storage buffers.
gpu_pass_time_ns: u64GPU time for the last timed render pass, in nanoseconds. 0 = no reading.
Trait Implementations§
Source§impl Clone for SsSceneStats
impl Clone for SsSceneStats
impl Copy for SsSceneStats
Auto Trait Implementations§
impl Freeze for SsSceneStats
impl RefUnwindSafe for SsSceneStats
impl Send for SsSceneStats
impl Sync for SsSceneStats
impl Unpin for SsSceneStats
impl UnsafeUnpin for SsSceneStats
impl UnwindSafe for SsSceneStats
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