VertexFormat


class VertexFormat


Specifies the data format of a vertex attribute.

Summary

Constants

const Int
Float16 = 25

Single-component, 16-bit float.

const Int

Two-component, 16-bit float.

const Int

Four-component, 16-bit float.

const Int
Float32 = 28

Single-component, 32-bit float.

const Int

Two-component, 32-bit float.

const Int

Three-component, 32-bit float.

const Int

Four-component, 32-bit float.

const Int
Sint16 = 16

Single-component, 16-bit signed integer.

const Int

Two-component, 16-bit signed integer.

const Int

Four-component, 16-bit signed integer.

const Int
Sint32 = 36

Single-component, 32-bit signed integer.

const Int

Two-component, 32-bit signed integer.

const Int

Three-component, 32-bit signed integer.

const Int

Four-component, 32-bit signed integer.

const Int
Sint8 = 4

Single-component, 8-bit signed integer.

const Int

Two-component, 8-bit signed integer.

const Int

Four-component, 8-bit signed integer.

const Int
Snorm16 = 22

Single-component, 16-bit signed normalized.

const Int

Two-component, 16-bit signed normalized.

const Int

Four-component, 16-bit signed normalized.

const Int
Snorm8 = 10

Single-component, 8-bit signed normalized.

const Int

Two-component, 8-bit signed normalized.

const Int

Four-component, 8-bit signed normalized.

const Int
Uint16 = 13

Single-component, 16-bit unsigned integer.

const Int

Two-component, 16-bit unsigned integer.

const Int

Four-component, 16-bit unsigned integer.

const Int
Uint32 = 32

Single-component, 32-bit unsigned integer.

const Int

Two-component, 32-bit unsigned integer.

const Int

Three-component, 32-bit unsigned integer.

const Int

Four-component, 32-bit unsigned integer.

const Int
Uint8 = 1

Single-component, 8-bit unsigned integer.

const Int

Two-component, 8-bit unsigned integer.

const Int

Four-component, 8-bit unsigned integer.

const Int
const Int
Unorm16 = 19

Single-component, 16-bit unsigned normalized.

const Int

Two-component, 16-bit unsigned normalized.

const Int

Four-component, 16-bit unsigned normalized.

const Int
Unorm8 = 7

Single-component, 8-bit unsigned normalized.

const Int

Two-component, 8-bit unsigned normalized.

const Int

Four-component, 8-bit unsigned normalized.

const Int

Public companion functions

String
toString(value: Int)

Constants

Float16

const val Float16 = 25: Int

Single-component, 16-bit float.

Float16x2

const val Float16x2 = 26: Int

Two-component, 16-bit float.

Float16x4

const val Float16x4 = 27: Int

Four-component, 16-bit float.

Float32

const val Float32 = 28: Int

Single-component, 32-bit float.

Float32x2

const val Float32x2 = 29: Int

Two-component, 32-bit float.

Float32x3

const val Float32x3 = 30: Int

Three-component, 32-bit float.

Float32x4

const val Float32x4 = 31: Int

Four-component, 32-bit float.

Sint16

const val Sint16 = 16: Int

Single-component, 16-bit signed integer.

Sint16x2

const val Sint16x2 = 17: Int

Two-component, 16-bit signed integer.

Sint16x4

const val Sint16x4 = 18: Int

Four-component, 16-bit signed integer.

Sint32

const val Sint32 = 36: Int

Single-component, 32-bit signed integer.

Sint32x2

const val Sint32x2 = 37: Int

Two-component, 32-bit signed integer.

Sint32x3

const val Sint32x3 = 38: Int

Three-component, 32-bit signed integer.

Sint32x4

const val Sint32x4 = 39: Int

Four-component, 32-bit signed integer.

Sint8

const val Sint8 = 4: Int

Single-component, 8-bit signed integer.

Sint8x2

const val Sint8x2 = 5: Int

Two-component, 8-bit signed integer.

Sint8x4

const val Sint8x4 = 6: Int

Four-component, 8-bit signed integer.

Snorm16

const val Snorm16 = 22: Int

Single-component, 16-bit signed normalized.

Snorm16x2

const val Snorm16x2 = 23: Int

Two-component, 16-bit signed normalized.

Snorm16x4

const val Snorm16x4 = 24: Int

Four-component, 16-bit signed normalized.

Snorm8

const val Snorm8 = 10: Int

Single-component, 8-bit signed normalized.

Snorm8x2

const val Snorm8x2 = 11: Int

Two-component, 8-bit signed normalized.

Snorm8x4

const val Snorm8x4 = 12: Int

Four-component, 8-bit signed normalized.

Uint16

const val Uint16 = 13: Int

Single-component, 16-bit unsigned integer.

Uint16x2

const val Uint16x2 = 14: Int

Two-component, 16-bit unsigned integer.

Uint16x4

const val Uint16x4 = 15: Int

Four-component, 16-bit unsigned integer.

Uint32

const val Uint32 = 32: Int

Single-component, 32-bit unsigned integer.

Uint32x2

const val Uint32x2 = 33: Int

Two-component, 32-bit unsigned integer.

Uint32x3

const val Uint32x3 = 34: Int

Three-component, 32-bit unsigned integer.

Uint32x4

const val Uint32x4 = 35: Int

Four-component, 32-bit unsigned integer.

Uint8

const val Uint8 = 1: Int

Single-component, 8-bit unsigned integer.

Uint8x2

const val Uint8x2 = 2: Int

Two-component, 8-bit unsigned integer.

Uint8x4

const val Uint8x4 = 3: Int

Four-component, 8-bit unsigned integer.

Unorm10_10_10_2

const val Unorm10_10_10_2 = 40: Int

Unorm16

const val Unorm16 = 19: Int

Single-component, 16-bit unsigned normalized.

Unorm16x2

const val Unorm16x2 = 20: Int

Two-component, 16-bit unsigned normalized.

Unorm16x4

const val Unorm16x4 = 21: Int

Four-component, 16-bit unsigned normalized.

Unorm8

const val Unorm8 = 7: Int

Single-component, 8-bit unsigned normalized.

Unorm8x2

const val Unorm8x2 = 8: Int

Two-component, 8-bit unsigned normalized.

Unorm8x4

const val Unorm8x4 = 9: Int

Four-component, 8-bit unsigned normalized.

Unorm8x4BGRA

const val Unorm8x4BGRA = 41: Int

Public companion functions

toString

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