bgfx_texture_format_t

Texture format enum. Notation: RGBA16S ^ ^ ^ | | +-- [ ]Unorm | | Float | | Snorm | | Int | | Uint | +---- Number of bits per component +-------- Components @attention Availability depends on Caps (see: formats).

Values

ValueMeaning
BGFX_TEXTURE_FORMAT_BC1

DXT1 R5G6B5A1

BGFX_TEXTURE_FORMAT_BC2

DXT3 R5G6B5A4

BGFX_TEXTURE_FORMAT_BC3

DXT5 R5G6B5A8

BGFX_TEXTURE_FORMAT_BC4

LATC1/ATI1 R8

BGFX_TEXTURE_FORMAT_BC5

LATC2/ATI2 RG8

BGFX_TEXTURE_FORMAT_BC6H

BC6H RGB16F

BGFX_TEXTURE_FORMAT_BC7

BC7 RGB 4-7 bits per color channel, 0-8 bits alpha

BGFX_TEXTURE_FORMAT_ETC1

ETC1 RGB8

BGFX_TEXTURE_FORMAT_ETC2

ETC2 RGB8

BGFX_TEXTURE_FORMAT_ETC2A

ETC2 RGBA8

BGFX_TEXTURE_FORMAT_ETC2A1

ETC2 RGB8A1

BGFX_TEXTURE_FORMAT_PTC12

PVRTC1 RGB 2BPP

BGFX_TEXTURE_FORMAT_PTC14

PVRTC1 RGB 4BPP

BGFX_TEXTURE_FORMAT_PTC12A

PVRTC1 RGBA 2BPP

BGFX_TEXTURE_FORMAT_PTC14A

PVRTC1 RGBA 4BPP

BGFX_TEXTURE_FORMAT_PTC22

PVRTC2 RGBA 2BPP

BGFX_TEXTURE_FORMAT_PTC24

PVRTC2 RGBA 4BPP

BGFX_TEXTURE_FORMAT_ATC

ATC RGB 4BPP

BGFX_TEXTURE_FORMAT_ATCE

ATCE RGBA 8 BPP explicit alpha

BGFX_TEXTURE_FORMAT_ATCI

ATCI RGBA 8 BPP interpolated alpha

BGFX_TEXTURE_FORMAT_ASTC4X4

ASTC 4x4 8.0 BPP

BGFX_TEXTURE_FORMAT_ASTC5X5

ASTC 5x5 5.12 BPP

BGFX_TEXTURE_FORMAT_ASTC6X6

ASTC 6x6 3.56 BPP

BGFX_TEXTURE_FORMAT_ASTC8X5

ASTC 8x5 3.20 BPP

BGFX_TEXTURE_FORMAT_ASTC8X6

ASTC 8x6 2.67 BPP

BGFX_TEXTURE_FORMAT_ASTC10X5

ASTC 10x5 2.56 BPP

BGFX_TEXTURE_FORMAT_UNKNOWN

Compressed formats above.

BGFX_TEXTURE_FORMAT_R1
BGFX_TEXTURE_FORMAT_A8
BGFX_TEXTURE_FORMAT_R8
BGFX_TEXTURE_FORMAT_R8I
BGFX_TEXTURE_FORMAT_R8U
BGFX_TEXTURE_FORMAT_R8S
BGFX_TEXTURE_FORMAT_R16
BGFX_TEXTURE_FORMAT_R16I
BGFX_TEXTURE_FORMAT_R16U
BGFX_TEXTURE_FORMAT_R16F
BGFX_TEXTURE_FORMAT_R16S
BGFX_TEXTURE_FORMAT_R32I
BGFX_TEXTURE_FORMAT_R32U
BGFX_TEXTURE_FORMAT_R32F
BGFX_TEXTURE_FORMAT_RG8
BGFX_TEXTURE_FORMAT_RG8I
BGFX_TEXTURE_FORMAT_RG8U
BGFX_TEXTURE_FORMAT_RG8S
BGFX_TEXTURE_FORMAT_RG16
BGFX_TEXTURE_FORMAT_RG16I
BGFX_TEXTURE_FORMAT_RG16U
BGFX_TEXTURE_FORMAT_RG16F
BGFX_TEXTURE_FORMAT_RG16S
BGFX_TEXTURE_FORMAT_RG32I
BGFX_TEXTURE_FORMAT_RG32U
BGFX_TEXTURE_FORMAT_RG32F
BGFX_TEXTURE_FORMAT_RGB8
BGFX_TEXTURE_FORMAT_RGB8I
BGFX_TEXTURE_FORMAT_RGB8U
BGFX_TEXTURE_FORMAT_RGB8S
BGFX_TEXTURE_FORMAT_RGB9E5F
BGFX_TEXTURE_FORMAT_BGRA8
BGFX_TEXTURE_FORMAT_RGBA8
BGFX_TEXTURE_FORMAT_RGBA8I
BGFX_TEXTURE_FORMAT_RGBA8U
BGFX_TEXTURE_FORMAT_RGBA8S
BGFX_TEXTURE_FORMAT_RGBA16
BGFX_TEXTURE_FORMAT_RGBA16I
BGFX_TEXTURE_FORMAT_RGBA16U
BGFX_TEXTURE_FORMAT_RGBA16F
BGFX_TEXTURE_FORMAT_RGBA16S
BGFX_TEXTURE_FORMAT_RGBA32I
BGFX_TEXTURE_FORMAT_RGBA32U
BGFX_TEXTURE_FORMAT_RGBA32F
BGFX_TEXTURE_FORMAT_R5G6B5
BGFX_TEXTURE_FORMAT_RGBA4
BGFX_TEXTURE_FORMAT_RGB5A1
BGFX_TEXTURE_FORMAT_RGB10A2
BGFX_TEXTURE_FORMAT_RG11B10F
BGFX_TEXTURE_FORMAT_UNKNOWNDEPTH

Depth formats below.

BGFX_TEXTURE_FORMAT_D16
BGFX_TEXTURE_FORMAT_D24
BGFX_TEXTURE_FORMAT_D24S8
BGFX_TEXTURE_FORMAT_D32
BGFX_TEXTURE_FORMAT_D16F
BGFX_TEXTURE_FORMAT_D24F
BGFX_TEXTURE_FORMAT_D32F
BGFX_TEXTURE_FORMAT_D0S8
BGFX_TEXTURE_FORMAT_COUNT

Meta