menu
GpuPresentationEvent
import { GpuPresentationEvent } from "destack:gpu/binding";
Presentation event.
1export struct GpuPresentationEvent {2 surface: GpuSurfaceHandle;3 frameId: uint64;4 displayFrameId: uint64;5 result: GpuPresentationResult;6 requestedPresentAtNs: uint64;7 presentedAtNs: uint64;8 refreshIntervalNs: uint64;9 compositorLatencyNs: uint64;10 reportedAtNs: uint64;11 sequence: uint64;12 droppedCount: uint64;13}Members
surface: GpuSurfaceHandleSurface associated with this event.
frameId: uint64Surface frame identifier.
displayFrameId: uint64Display frame identifier.
result: GpuPresentationResultPresentation result.
requestedPresentAtNs: uint64Requested presentation timestamp.
presentedAtNs: uint64Actual presentation timestamp.
refreshIntervalNs: uint64Effective refresh interval in nanoseconds.
compositorLatencyNs: uint64Compositor latency in nanoseconds.
reportedAtNs: uint64Reporting timestamp in nanoseconds.
sequence: uint64Event sequence number.
droppedCount: uint64Dropped event count before this event.