SurfaceGetCurrentTextureStatus


class SurfaceGetCurrentTextureStatus


Status codes for retrieving the current texture from a surface.

Summary

Constants

const Int
Error = 6

A deterministic error occurred, such as the surface not being configured.

const Int
Lost = 5

The surface has been lost and must be recreated.

const Int

The surface configuration is outdated and must be reconfigured.

const Int

The texture was acquired successfully and is optimal for presentation.

const Int

The texture was acquired successfully but is suboptimal for presentation; reconfiguration may be needed.

const Int

The operation timed out while acquiring the texture.

Public companion functions

String
toString(value: Int)

Constants

Error

const val Error = 6: Int

A deterministic error occurred, such as the surface not being configured.

Lost

const val Lost = 5: Int

The surface has been lost and must be recreated.

Outdated

const val Outdated = 4: Int

The surface configuration is outdated and must be reconfigured.

SuccessOptimal

const val SuccessOptimal = 1: Int

The texture was acquired successfully and is optimal for presentation.

SuccessSuboptimal

const val SuccessSuboptimal = 2: Int

The texture was acquired successfully but is suboptimal for presentation; reconfiguration may be needed.

Timeout

const val Timeout = 3: Int

The operation timed out while acquiring the texture.

Public companion functions

toString

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