menu

GpuPresentationEvent

import { GpuPresentationEvent } from "destack:gpu/binding";

Presentation event.

language/library/src/gpu/binding/present.ds:194:217
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: GpuSurfaceHandle

Surface associated with this event.

frameId: uint64

Surface frame identifier.

displayFrameId: uint64

Display frame identifier.

result: GpuPresentationResult

Presentation result.

requestedPresentAtNs: uint64

Requested presentation timestamp.

presentedAtNs: uint64

Actual presentation timestamp.

refreshIntervalNs: uint64

Effective refresh interval in nanoseconds.

compositorLatencyNs: uint64

Compositor latency in nanoseconds.

reportedAtNs: uint64

Reporting timestamp in nanoseconds.

sequence: uint64

Event sequence number.

droppedCount: uint64

Dropped event count before this event.