TextureFormat


class TextureFormat


An enumeration of all supported texture formats.

Summary

Constants

const Int

ASTC compressed 10x10 unsigned normalized format.

const Int

ASTC compressed 10x10 sRGB unsigned normalized format.

const Int

ASTC compressed 10x5 unsigned normalized format.

const Int

ASTC compressed 10x5 sRGB unsigned normalized format.

const Int

ASTC compressed 10x6 unsigned normalized format.

const Int

ASTC compressed 10x6 sRGB unsigned normalized format.

const Int

ASTC compressed 10x8 unsigned normalized format.

const Int

ASTC compressed 10x8 sRGB unsigned normalized format.

const Int

ASTC compressed 12x10 unsigned normalized format.

const Int

ASTC compressed 12x10 sRGB unsigned normalized format.

const Int

ASTC compressed 12x12 unsigned normalized format.

const Int

ASTC compressed 12x12 sRGB unsigned normalized format.

const Int

ASTC compressed 4x4 unsigned normalized format.

const Int

ASTC compressed 4x4 sRGB unsigned normalized format.

const Int

ASTC compressed 5x4 unsigned normalized format.

const Int

ASTC compressed 5x4 sRGB unsigned normalized format.

const Int

ASTC compressed 5x5 unsigned normalized format.

const Int

ASTC compressed 5x5 sRGB unsigned normalized format.

const Int

ASTC compressed 6x5 unsigned normalized format.

const Int

ASTC compressed 6x5 sRGB unsigned normalized format.

const Int

ASTC compressed 6x6 unsigned normalized format.

const Int

ASTC compressed 6x6 sRGB unsigned normalized format.

const Int

ASTC compressed 8x5 unsigned normalized format.

const Int

ASTC compressed 8x5 sRGB unsigned normalized format.

const Int

ASTC compressed 8x6 unsigned normalized format.

const Int

ASTC compressed 8x6 sRGB unsigned normalized format.

const Int

ASTC compressed 8x8 unsigned normalized format.

const Int

ASTC compressed 8x8 sRGB unsigned normalized format.

const Int

BC1 compressed RGBA unsigned normalized format.

const Int

BC1 compressed RGBA sRGB unsigned normalized format.

const Int

BC2 compressed RGBA unsigned normalized format.

const Int

BC2 compressed RGBA sRGB unsigned normalized format.

const Int

BC3 compressed RGBA unsigned normalized format.

const Int

BC3 compressed RGBA sRGB unsigned normalized format.

const Int

BC4 compressed single-channel signed normalized format.

const Int

BC4 compressed single-channel unsigned normalized format.

const Int

BC5 compressed two-channel signed normalized format.

const Int

BC5 compressed two-channel unsigned normalized format.

const Int

BC6H compressed RGB signed float format.

const Int

BC6H compressed RGB unsigned float format.

const Int

BC7 compressed RGBA unsigned normalized format.

const Int

BC7 compressed RGBA sRGB unsigned normalized format.

const Int

Four-component 32-bit unsigned normalized format with blue channel first.

const Int

Four-component 32-bit sRGB unsigned normalized format with blue channel first.

const Int

16-bit unsigned normalized depth format.

const Int

A depth format with at least 24 bits.

const Int

A packed depth-stencil format with at least 24 bits for depth and 8 for stencil.

const Int

32-bit float depth format.

const Int

32-bit float depth and 8-bit stencil format.

const Int

EAC compressed R11 signed normalized format.

const Int

EAC compressed R11 unsigned normalized format.

const Int

EAC compressed RG11 signed normalized format.

const Int

EAC compressed RG11 unsigned normalized format.

const Int

ETC2 compressed RGB8A1 unsigned normalized format.

const Int

ETC2 compressed RGB8A1 sRGB unsigned normalized format.

const Int

ETC2 compressed RGB8 unsigned normalized format.

const Int

ETC2 compressed RGB8 sRGB unsigned normalized format.

const Int

ETC2 compressed RGBA8 unsigned normalized format.

const Int

ETC2 compressed RGBA8 sRGB unsigned normalized format.

const Int

16-bit float red channel format.

const Int

16-bit signed integer red channel format.

const Int

16-bit signed normalized red channel format.

const Int

16-bit unsigned integer red channel format.

const Int

16-bit unsigned normalized red channel format.

const Int

32-bit float red channel format.

const Int
R32Sint = 16

32-bit signed integer red channel format.

const Int
R32Uint = 15

32-bit unsigned integer red channel format.

const Int
R8Sint = 4

8-bit signed integer red channel format.

const Int

8-bit signed normalized red channel format.

const Int
R8Uint = 3

8-bit unsigned integer red channel format.

const Int

8-bit unsigned normalized red channel format.

const Int

Packed 32-bit format with 11-bit R, G and 10-bit B unsigned float components.

const Int

Two-component 32-bit float format.

const Int

Two-component 32-bit signed integer format.

const Int

Two-component 32-bit signed normalized format.

const Int

Two-component 32-bit unsigned integer format.

const Int

Two-component 32-bit unsigned normalized format.

const Int

Two-component 64-bit float format.

const Int

Two-component 64-bit signed integer format.

const Int

Two-component 64-bit unsigned integer format.

const Int
RG8Sint = 13

Two-component 16-bit signed integer format.

const Int

Two-component 16-bit signed normalized format.

const Int
RG8Uint = 12

Two-component 16-bit unsigned integer format.

const Int

Two-component 16-bit unsigned normalized format.

const Int

Packed 32-bit format with 10-bit R, G, B and 2-bit A unsigned integer components.

const Int

Packed 32-bit format with 10-bit R, G, B and 2-bit A unsigned normalized components.

const Int

Packed 32-bit format with 9-bit R, G, B mantissas and a shared 5-bit exponent.

const Int

Four-component 64-bit float format.

const Int

Four-component 64-bit signed integer format.

const Int

Four-component 64-bit signed normalized format.

const Int

Four-component 64-bit unsigned integer format.

const Int

Four-component 64-bit unsigned normalized format.

const Int

Four-component 128-bit float format.

const Int

Four-component 128-bit signed integer format.

const Int

Four-component 128-bit unsigned integer format.

const Int

Four-component 32-bit signed integer format.

const Int

Four-component 32-bit signed normalized format.

const Int

Four-component 32-bit unsigned integer format.

const Int

Four-component 32-bit unsigned normalized format.

const Int

Four-component 32-bit sRGB unsigned normalized format.

const Int

8-bit stencil format.

const Int

Indicates that no texture format is specified.

Public companion functions

String
toString(value: Int)

Constants

ASTC10x10Unorm

const val ASTC10x10Unorm = 96: Int

ASTC compressed 10x10 unsigned normalized format.

ASTC10x10UnormSrgb

const val ASTC10x10UnormSrgb = 97: Int

ASTC compressed 10x10 sRGB unsigned normalized format.

ASTC10x5Unorm

const val ASTC10x5Unorm = 90: Int

ASTC compressed 10x5 unsigned normalized format.

ASTC10x5UnormSrgb

const val ASTC10x5UnormSrgb = 91: Int

ASTC compressed 10x5 sRGB unsigned normalized format.

ASTC10x6Unorm

const val ASTC10x6Unorm = 92: Int

ASTC compressed 10x6 unsigned normalized format.

ASTC10x6UnormSrgb

const val ASTC10x6UnormSrgb = 93: Int

ASTC compressed 10x6 sRGB unsigned normalized format.

ASTC10x8Unorm

const val ASTC10x8Unorm = 94: Int

ASTC compressed 10x8 unsigned normalized format.

ASTC10x8UnormSrgb

const val ASTC10x8UnormSrgb = 95: Int

ASTC compressed 10x8 sRGB unsigned normalized format.

ASTC12x10Unorm

const val ASTC12x10Unorm = 98: Int

ASTC compressed 12x10 unsigned normalized format.

ASTC12x10UnormSrgb

const val ASTC12x10UnormSrgb = 99: Int

ASTC compressed 12x10 sRGB unsigned normalized format.

ASTC12x12Unorm

const val ASTC12x12Unorm = 100: Int

ASTC compressed 12x12 unsigned normalized format.

ASTC12x12UnormSrgb

const val ASTC12x12UnormSrgb = 101: Int

ASTC compressed 12x12 sRGB unsigned normalized format.

ASTC4x4Unorm

const val ASTC4x4Unorm = 74: Int

ASTC compressed 4x4 unsigned normalized format.

ASTC4x4UnormSrgb

const val ASTC4x4UnormSrgb = 75: Int

ASTC compressed 4x4 sRGB unsigned normalized format.

ASTC5x4Unorm

const val ASTC5x4Unorm = 76: Int

ASTC compressed 5x4 unsigned normalized format.

ASTC5x4UnormSrgb

const val ASTC5x4UnormSrgb = 77: Int

ASTC compressed 5x4 sRGB unsigned normalized format.

ASTC5x5Unorm

const val ASTC5x5Unorm = 78: Int

ASTC compressed 5x5 unsigned normalized format.

ASTC5x5UnormSrgb

const val ASTC5x5UnormSrgb = 79: Int

ASTC compressed 5x5 sRGB unsigned normalized format.

ASTC6x5Unorm

const val ASTC6x5Unorm = 80: Int

ASTC compressed 6x5 unsigned normalized format.

ASTC6x5UnormSrgb

const val ASTC6x5UnormSrgb = 81: Int

ASTC compressed 6x5 sRGB unsigned normalized format.

ASTC6x6Unorm

const val ASTC6x6Unorm = 82: Int

ASTC compressed 6x6 unsigned normalized format.

ASTC6x6UnormSrgb

const val ASTC6x6UnormSrgb = 83: Int

ASTC compressed 6x6 sRGB unsigned normalized format.

ASTC8x5Unorm

const val ASTC8x5Unorm = 84: Int

ASTC compressed 8x5 unsigned normalized format.

ASTC8x5UnormSrgb

const val ASTC8x5UnormSrgb = 85: Int

ASTC compressed 8x5 sRGB unsigned normalized format.

ASTC8x6Unorm

const val ASTC8x6Unorm = 86: Int

ASTC compressed 8x6 unsigned normalized format.

ASTC8x6UnormSrgb

const val ASTC8x6UnormSrgb = 87: Int

ASTC compressed 8x6 sRGB unsigned normalized format.

ASTC8x8Unorm

const val ASTC8x8Unorm = 88: Int

ASTC compressed 8x8 unsigned normalized format.

ASTC8x8UnormSrgb

const val ASTC8x8UnormSrgb = 89: Int

ASTC compressed 8x8 sRGB unsigned normalized format.

BC1RGBAUnorm

const val BC1RGBAUnorm = 50: Int

BC1 compressed RGBA unsigned normalized format.

BC1RGBAUnormSrgb

const val BC1RGBAUnormSrgb = 51: Int

BC1 compressed RGBA sRGB unsigned normalized format.

BC2RGBAUnorm

const val BC2RGBAUnorm = 52: Int

BC2 compressed RGBA unsigned normalized format.

BC2RGBAUnormSrgb

const val BC2RGBAUnormSrgb = 53: Int

BC2 compressed RGBA sRGB unsigned normalized format.

BC3RGBAUnorm

const val BC3RGBAUnorm = 54: Int

BC3 compressed RGBA unsigned normalized format.

BC3RGBAUnormSrgb

const val BC3RGBAUnormSrgb = 55: Int

BC3 compressed RGBA sRGB unsigned normalized format.

BC4RSnorm

const val BC4RSnorm = 57: Int

BC4 compressed single-channel signed normalized format.

BC4RUnorm

const val BC4RUnorm = 56: Int

BC4 compressed single-channel unsigned normalized format.

BC5RGSnorm

const val BC5RGSnorm = 59: Int

BC5 compressed two-channel signed normalized format.

BC5RGUnorm

const val BC5RGUnorm = 58: Int

BC5 compressed two-channel unsigned normalized format.

BC6HRGBFloat

const val BC6HRGBFloat = 61: Int

BC6H compressed RGB signed float format.

BC6HRGBUfloat

const val BC6HRGBUfloat = 60: Int

BC6H compressed RGB unsigned float format.

BC7RGBAUnorm

const val BC7RGBAUnorm = 62: Int

BC7 compressed RGBA unsigned normalized format.

BC7RGBAUnormSrgb

const val BC7RGBAUnormSrgb = 63: Int

BC7 compressed RGBA sRGB unsigned normalized format.

BGRA8Unorm

const val BGRA8Unorm = 27: Int

Four-component 32-bit unsigned normalized format with blue channel first.

BGRA8UnormSrgb

const val BGRA8UnormSrgb = 28: Int

Four-component 32-bit sRGB unsigned normalized format with blue channel first.

Depth16Unorm

const val Depth16Unorm = 45: Int

16-bit unsigned normalized depth format.

Depth24Plus

const val Depth24Plus = 46: Int

A depth format with at least 24 bits.

Depth24PlusStencil8

const val Depth24PlusStencil8 = 47: Int

A packed depth-stencil format with at least 24 bits for depth and 8 for stencil.

Depth32Float

const val Depth32Float = 48: Int

32-bit float depth format.

Depth32FloatStencil8

const val Depth32FloatStencil8 = 49: Int

32-bit float depth and 8-bit stencil format.

EACR11Snorm

const val EACR11Snorm = 71: Int

EAC compressed R11 signed normalized format.

EACR11Unorm

const val EACR11Unorm = 70: Int

EAC compressed R11 unsigned normalized format.

EACRG11Snorm

const val EACRG11Snorm = 73: Int

EAC compressed RG11 signed normalized format.

EACRG11Unorm

const val EACRG11Unorm = 72: Int

EAC compressed RG11 unsigned normalized format.

ETC2RGB8A1Unorm

const val ETC2RGB8A1Unorm = 66: Int

ETC2 compressed RGB8A1 unsigned normalized format.

ETC2RGB8A1UnormSrgb

const val ETC2RGB8A1UnormSrgb = 67: Int

ETC2 compressed RGB8A1 sRGB unsigned normalized format.

ETC2RGB8Unorm

const val ETC2RGB8Unorm = 64: Int

ETC2 compressed RGB8 unsigned normalized format.

ETC2RGB8UnormSrgb

const val ETC2RGB8UnormSrgb = 65: Int

ETC2 compressed RGB8 sRGB unsigned normalized format.

ETC2RGBA8Unorm

const val ETC2RGBA8Unorm = 68: Int

ETC2 compressed RGBA8 unsigned normalized format.

ETC2RGBA8UnormSrgb

const val ETC2RGBA8UnormSrgb = 69: Int

ETC2 compressed RGBA8 sRGB unsigned normalized format.

R16Float

const val R16Float = 9: Int

16-bit float red channel format.

R16Sint

const val R16Sint = 8: Int

16-bit signed integer red channel format.

R16Snorm

const val R16Snorm = 6: Int

16-bit signed normalized red channel format.

R16Uint

const val R16Uint = 7: Int

16-bit unsigned integer red channel format.

R16Unorm

const val R16Unorm = 5: Int

16-bit unsigned normalized red channel format.

R32Float

const val R32Float = 14: Int

32-bit float red channel format.

R32Sint

const val R32Sint = 16: Int

32-bit signed integer red channel format.

R32Uint

const val R32Uint = 15: Int

32-bit unsigned integer red channel format.

R8Sint

const val R8Sint = 4: Int

8-bit signed integer red channel format.

R8Snorm

const val R8Snorm = 2: Int

8-bit signed normalized red channel format.

R8Uint

const val R8Uint = 3: Int

8-bit unsigned integer red channel format.

R8Unorm

const val R8Unorm = 1: Int

8-bit unsigned normalized red channel format.

RG11B10Ufloat

const val RG11B10Ufloat = 31: Int

Packed 32-bit format with 11-bit R, G and 10-bit B unsigned float components.

RG16Float

const val RG16Float = 21: Int

Two-component 32-bit float format.

RG16Sint

const val RG16Sint = 20: Int

Two-component 32-bit signed integer format.

RG16Snorm

const val RG16Snorm = 18: Int

Two-component 32-bit signed normalized format.

RG16Uint

const val RG16Uint = 19: Int

Two-component 32-bit unsigned integer format.

RG16Unorm

const val RG16Unorm = 17: Int

Two-component 32-bit unsigned normalized format.

RG32Float

const val RG32Float = 33: Int

Two-component 64-bit float format.

RG32Sint

const val RG32Sint = 35: Int

Two-component 64-bit signed integer format.

RG32Uint

const val RG32Uint = 34: Int

Two-component 64-bit unsigned integer format.

RG8Sint

const val RG8Sint = 13: Int

Two-component 16-bit signed integer format.

RG8Snorm

const val RG8Snorm = 11: Int

Two-component 16-bit signed normalized format.

RG8Uint

const val RG8Uint = 12: Int

Two-component 16-bit unsigned integer format.

RG8Unorm

const val RG8Unorm = 10: Int

Two-component 16-bit unsigned normalized format.

RGB10A2Uint

const val RGB10A2Uint = 29: Int

Packed 32-bit format with 10-bit R, G, B and 2-bit A unsigned integer components.

RGB10A2Unorm

const val RGB10A2Unorm = 30: Int

Packed 32-bit format with 10-bit R, G, B and 2-bit A unsigned normalized components.

RGB9E5Ufloat

const val RGB9E5Ufloat = 32: Int

Packed 32-bit format with 9-bit R, G, B mantissas and a shared 5-bit exponent.

RGBA16Float

const val RGBA16Float = 40: Int

Four-component 64-bit float format.

RGBA16Sint

const val RGBA16Sint = 39: Int

Four-component 64-bit signed integer format.

RGBA16Snorm

const val RGBA16Snorm = 37: Int

Four-component 64-bit signed normalized format.

RGBA16Uint

const val RGBA16Uint = 38: Int

Four-component 64-bit unsigned integer format.

RGBA16Unorm

const val RGBA16Unorm = 36: Int

Four-component 64-bit unsigned normalized format.

RGBA32Float

const val RGBA32Float = 41: Int

Four-component 128-bit float format.

RGBA32Sint

const val RGBA32Sint = 43: Int

Four-component 128-bit signed integer format.

RGBA32Uint

const val RGBA32Uint = 42: Int

Four-component 128-bit unsigned integer format.

RGBA8Sint

const val RGBA8Sint = 26: Int

Four-component 32-bit signed integer format.

RGBA8Snorm

const val RGBA8Snorm = 24: Int

Four-component 32-bit signed normalized format.

RGBA8Uint

const val RGBA8Uint = 25: Int

Four-component 32-bit unsigned integer format.

RGBA8Unorm

const val RGBA8Unorm = 22: Int

Four-component 32-bit unsigned normalized format.

RGBA8UnormSrgb

const val RGBA8UnormSrgb = 23: Int

Four-component 32-bit sRGB unsigned normalized format.

Stencil8

const val Stencil8 = 44: Int

8-bit stencil format.

Undefined

const val Undefined = 0: Int

Indicates that no texture format is specified.

Public companion functions

toString

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