menu

GpuPresentMode

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

Surface present mode.

language/library/src/gpu/binding/present.ds:15:28
1export enum GpuPresentMode {2    AutoVsync = 0,3    AutoNoVsync = 1,4    Fifo = 2,5    FifoRelaxed = 3,6    Immediate = 4,7    Mailbox = 5,8}

Variants

AutoVsync = 0

Choose the first supported v-synced mode.

AutoNoVsync = 1

Choose the first supported non-v-synced mode.

Fifo = 2

Present in first-in-first-out v-sync order.

FifoRelaxed = 3

Present with relaxed v-sync when available.

Immediate = 4

Present without v-sync ordering.

Mailbox = 5

Present the latest available frame.