PresentMode


class PresentMode


Defines the behavior of frame presentation for a surface.

Summary

Constants

const Int
Fifo = 1

V-sync enabled, presents frames in a first-in, first-out queue.

const Int

A relaxed version of FIFO that may allow tearing to reduce latency.

const Int

Presents frames immediately, which may result in tearing.

const Int

V-sync enabled, presents the most recently completed frame, discarding older ones.

const Int

The present mode is not specified; uses a default.

Public companion functions

String
toString(value: Int)

Constants

Fifo

const val Fifo = 1: Int

V-sync enabled, presents frames in a first-in, first-out queue.

FifoRelaxed

const val FifoRelaxed = 2: Int

A relaxed version of FIFO that may allow tearing to reduce latency.

Immediate

const val Immediate = 3: Int

Presents frames immediately, which may result in tearing.

Mailbox

const val Mailbox = 4: Int

V-sync enabled, presents the most recently completed frame, discarding older ones.

Undefined

const val Undefined = 0: Int

The present mode is not specified; uses a default.

Public companion functions

toString

Added in 1.0.0-alpha05
fun toString(value: Int): String