nn::tpl::CTR::CtrTexFormat Enumerated Type

Syntax

enum CtrTexFormat;

Value

Value Description
TEXFMT_RGBA8888 R: 8 bits / G: 8 bits / B: 8 bits / A: 8 bits
TEXFMT_RGB888 R: 8 bits / G: 8 bits / B: 8 bits
TEXFMT_RGBA5551 R: 5 bits / G: 5 bits / B: 5 bits / A: 1 bits
TEXFMT_RGB565 R: 5 bits / G: 6 bits / B: 5 bits
TEXFMT_RGBA4444 R: 4 bits / G: 4 bits / B: 4 bits / A: 4 bits
TEXFMT_LA88 Luminance: 8 bits / Alpha: 8 bits
TEXFMT_HL8 R: 8 bits / G: 8 bits
TEXFMT_L8 Luminance: 8 bits
TEXFMT_A8 Alpha: 8 bits
TEXFMT_LA44 Luminance: 4 bits / Alpha: 4 bits
TEXFMT_L4 Luminance: 4 bits
TEXFMT_A4 Alpha: 4 bits
TEXFMT_ETC1 ETC1 compressed format
TEXFMT_ETC1_A4 ETC1 compressed format with alpha
TEXFMT_SHADOW Shadow texture (unsigned int)
TEXFMT_GAS Gas texture (unsigned short)
TEXFMT_REF One-dimentional texture (float)
TEXFMT_UNSUPPORT Identifier indicating an unsupported format.
TEXFMT_ForceInt32

Description

Enumerated type representing the GPU's texture format.

Values that can be set in the PICA registers (such as bits [3:0] of register 0x8e) are defined by taking a bitwise OR with 0xf for each format. (This does not apply to TEXFMT_REF and TEXFMT_UNSUPPORT.)

Revision History

2010/08/16
Initial version.

CONFIDENTIAL