pub struct GpuPresentTimings {
pub presented: bool,
pub raster_2d: Duration,
pub wgpu_3d_submit: Duration,
pub swapchain_present: Duration,
}Expand description
Structured wall-clock breakdown returned by hybrid GTK + wgpu swapchain presentation so
[FrameProfileRecord] captures real 2D raster/upload, 3D GPU encode/submit, and swapchain
present durations instead of attributing everything to a single bucket.
Fields§
§presented: boolTrue when the native wgpu swapchain rendered and presented the frame.
raster_2d: DurationTime spent rasterizing/uploading the 2D UI overlay (Cairo tiles + texture upload,
or GPU 2D batch collection when STRATA_GPU_2D=1).
wgpu_3d_submit: DurationTime spent acquiring the swapchain surface, encoding 3D/2D passes, and submitting to wgpu.
swapchain_present: DurationTime spent in wgpu::SurfaceTexture::present() (swapchain handoff / vsync).
Trait Implementations§
Source§impl Clone for GpuPresentTimings
impl Clone for GpuPresentTimings
impl Copy for GpuPresentTimings
Source§impl Debug for GpuPresentTimings
impl Debug for GpuPresentTimings
Source§impl Default for GpuPresentTimings
impl Default for GpuPresentTimings
impl Eq for GpuPresentTimings
Source§impl PartialEq for GpuPresentTimings
impl PartialEq for GpuPresentTimings
impl StructuralPartialEq for GpuPresentTimings
Auto Trait Implementations§
impl Forget for GpuPresentTimings
impl Freeze for GpuPresentTimings
impl Move for GpuPresentTimings
impl RefUnwindSafe for GpuPresentTimings
impl Send for GpuPresentTimings
impl Sync for GpuPresentTimings
impl Unpin for GpuPresentTimings
impl UnsafeUnpin for GpuPresentTimings
impl UnwindSafe for GpuPresentTimings
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
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.