Navigate to the top level

Texture_format

Description
Exercises rendering a textured quad using various NV2A hardware texture formats. A color gradient is generated and converted to the target format (applying swizzling if swizzled), then sampled via the projective 2D shader stage with the final combiner set to output the sampled texture color. Also tests 8-bit palettized textures across various palette sizes and verifies alpha channel behavior for formats containing dummy "X" alpha components.
Suite class def

DepthFmt_D_X8Y24_FIXED

Samples a 2D depth texture in 24-bit fixed-point depth swizzled format (NV097_SET_TEXTURE_FORMAT_COLOR_SZ_DEPTH_X8_Y24_FIXED) using 3D projective shadow comparison against a constant reference depth across 6 shadow compare functions, saving the backbuffer.

Image with alpha
Test result for Texture_format::DepthFmt_D_X8Y24_FIXED
Image as seen on display
No alpha test result for Texture_format::DepthFmt_D_X8Y24_FIXED

DepthFmt_D_X8Y24_FIXED_L

Samples a 2D depth texture in 24-bit fixed-point depth linear format (NV097_SET_TEXTURE_FORMAT_COLOR_LU_IMAGE_DEPTH_X8_Y24_FIXED) using 3D projective shadow comparison against a constant reference depth across 6 shadow compare functions, saving the backbuffer.

Image with alpha
Test result for Texture_format::DepthFmt_D_X8Y24_FIXED_L
Image as seen on display
No alpha test result for Texture_format::DepthFmt_D_X8Y24_FIXED_L

DepthFmt_D_X8Y24_FLOAT

Samples a 2D depth texture in 24-bit floating-point depth swizzled format (NV097_SET_TEXTURE_FORMAT_COLOR_SZ_DEPTH_X8_Y24_FLOAT) using 3D projective shadow comparison against a constant reference depth across 6 shadow compare functions, saving the backbuffer.

Image with alpha
Test result for Texture_format::DepthFmt_D_X8Y24_FLOAT
Image as seen on display
No alpha test result for Texture_format::DepthFmt_D_X8Y24_FLOAT

DepthFmt_D_Y16_FIXED

Samples a 2D depth texture in 16-bit fixed-point depth swizzled format (NV097_SET_TEXTURE_FORMAT_COLOR_SZ_DEPTH_Y16_FIXED) using 3D projective shadow comparison against a constant reference depth across 6 shadow compare functions, saving the backbuffer.

Image with alpha
Test result for Texture_format::DepthFmt_D_Y16_FIXED
Image as seen on display
No alpha test result for Texture_format::DepthFmt_D_Y16_FIXED

DepthFmt_D_Y16_FIXED_L

Samples a 2D depth texture in 16-bit fixed-point depth linear format (NV097_SET_TEXTURE_FORMAT_COLOR_LU_IMAGE_DEPTH_Y16_FIXED) using 3D projective shadow comparison against a constant reference depth across 6 shadow compare functions, saving the backbuffer.

Image with alpha
Test result for Texture_format::DepthFmt_D_Y16_FIXED_L
Image as seen on display
No alpha test result for Texture_format::DepthFmt_D_Y16_FIXED_L

DepthFmt_D_Y16_FLOAT

Samples a 2D depth texture in 16-bit floating-point depth swizzled format (NV097_SET_TEXTURE_FORMAT_COLOR_SZ_DEPTH_Y16_FLOAT) using 3D projective shadow comparison against a constant reference depth across 6 shadow compare functions, saving the backbuffer.

Image with alpha
Test result for Texture_format::DepthFmt_D_Y16_FLOAT
Image as seen on display
No alpha test result for Texture_format::DepthFmt_D_Y16_FLOAT

DepthFmt_D_Y16_FLOAT_L

Samples a 2D depth texture in 16-bit floating-point depth linear format (NV097_SET_TEXTURE_FORMAT_COLOR_LU_IMAGE_DEPTH_Y16_FLOAT) using 3D projective shadow comparison against a constant reference depth across 6 shadow compare functions, saving the backbuffer.

Image with alpha
Test result for Texture_format::DepthFmt_D_Y16_FLOAT_L
Image as seen on display
No alpha test result for Texture_format::DepthFmt_D_Y16_FLOAT_L

TexFmt_A1R5G5B5

Samples a 2D color gradient texture in A1R5G5B5 swizzled format.

Image with alpha
Test result for Texture_format::TexFmt_A1R5G5B5
Image as seen on display
No alpha test result for Texture_format::TexFmt_A1R5G5B5

TexFmt_A1R5G5B5_L

Samples a 2D color gradient texture in A1R5G5B5 linear format.

Image with alpha
Test result for Texture_format::TexFmt_A1R5G5B5_L
Image as seen on display
No alpha test result for Texture_format::TexFmt_A1R5G5B5_L

TexFmt_A4R4G4B4

Samples a 2D color gradient texture in A4R4G4B4 swizzled format.

Image with alpha
Test result for Texture_format::TexFmt_A4R4G4B4
Image as seen on display
No alpha test result for Texture_format::TexFmt_A4R4G4B4

TexFmt_A4R4G4B4_L

Samples a 2D color gradient texture in A4R4G4B4 linear format.

Image with alpha
Test result for Texture_format::TexFmt_A4R4G4B4_L
Image as seen on display
No alpha test result for Texture_format::TexFmt_A4R4G4B4_L

TexFmt_A8

Samples a 2D color gradient texture in A8 swizzled format.

Image with alpha
Test result for Texture_format::TexFmt_A8
Image as seen on display
No alpha test result for Texture_format::TexFmt_A8

TexFmt_A8_L

Samples a 2D color gradient texture in A8 linear format.

Image with alpha
Test result for Texture_format::TexFmt_A8_L
Image as seen on display
No alpha test result for Texture_format::TexFmt_A8_L

TexFmt_A8B8G8R8

Samples a 2D color gradient texture in A8B8G8R8 swizzled format.

Image with alpha
Test result for Texture_format::TexFmt_A8B8G8R8
Image as seen on display
No alpha test result for Texture_format::TexFmt_A8B8G8R8

TexFmt_A8B8G8R8_L

Samples a 2D color gradient texture in A8B8G8R8 linear format.

Image with alpha
Test result for Texture_format::TexFmt_A8B8G8R8_L
Image as seen on display
No alpha test result for Texture_format::TexFmt_A8B8G8R8_L

TexFmt_A8R8G8B8

Samples a 2D color gradient texture in A8R8G8B8 swizzled format.

Image with alpha
Test result for Texture_format::TexFmt_A8R8G8B8
Image as seen on display
No alpha test result for Texture_format::TexFmt_A8R8G8B8

TexFmt_A8R8G8B8_L

Samples a 2D color gradient texture in A8R8G8B8 linear format.

Image with alpha
Test result for Texture_format::TexFmt_A8R8G8B8_L
Image as seen on display
No alpha test result for Texture_format::TexFmt_A8R8G8B8_L

TexFmt_A8Y8

Samples a 2D color gradient texture in A8Y8 swizzled format.

Image with alpha
Test result for Texture_format::TexFmt_A8Y8
Image as seen on display
No alpha test result for Texture_format::TexFmt_A8Y8

TexFmt_AY8

Samples a 2D color gradient texture in AY8 swizzled format.

Image with alpha
Test result for Texture_format::TexFmt_AY8
Image as seen on display
No alpha test result for Texture_format::TexFmt_AY8

TexFmt_AY8_L

Samples a 2D color gradient texture in AY8 linear format.

Image with alpha
Test result for Texture_format::TexFmt_AY8_L
Image as seen on display
No alpha test result for Texture_format::TexFmt_AY8_L

TexFmt_B8G8R8A8

Samples a 2D color gradient texture in B8G8R8A8 swizzled format.

Image with alpha
Test result for Texture_format::TexFmt_B8G8R8A8
Image as seen on display
No alpha test result for Texture_format::TexFmt_B8G8R8A8

TexFmt_B8G8R8A8_L

Samples a 2D color gradient texture in B8G8R8A8 linear format.

Image with alpha
Test result for Texture_format::TexFmt_B8G8R8A8_L
Image as seen on display
No alpha test result for Texture_format::TexFmt_B8G8R8A8_L

TexFmt_DXT1

Samples a 2D color gradient texture in DXT1 compressed format.

Image with alpha
Test result for Texture_format::TexFmt_DXT1
Image as seen on display
No alpha test result for Texture_format::TexFmt_DXT1

TexFmt_G8B8

Samples a 2D color gradient texture in G8B8 swizzled format.

Image with alpha
Test result for Texture_format::TexFmt_G8B8
Image as seen on display
No alpha test result for Texture_format::TexFmt_G8B8

TexFmt_G8B8_L

Samples a 2D color gradient texture in G8B8 linear format.

Image with alpha
Test result for Texture_format::TexFmt_G8B8_L
Image as seen on display
No alpha test result for Texture_format::TexFmt_G8B8_L

TexFmt_R16B16

Samples a 2D color gradient texture in R16B16 swizzled format (NV097_SET_TEXTURE_FORMAT_COLOR_SZ_YB_16_YA_16).

Image with alpha
Test result for Texture_format::TexFmt_R16B16
Image as seen on display
No alpha test result for Texture_format::TexFmt_R16B16

TexFmt_R16B16_L

Samples a 2D color gradient texture in R16B16 linear format (NV097_SET_TEXTURE_FORMAT_COLOR_LU_IMAGE_YB16YA16).

Image with alpha
Test result for Texture_format::TexFmt_R16B16_L
Image as seen on display
No alpha test result for Texture_format::TexFmt_R16B16_L

TexFmt_R5G6B5

Samples a 2D color gradient texture in R5G6B5 swizzled format.

Image with alpha
Test result for Texture_format::TexFmt_R5G6B5
Image as seen on display
No alpha test result for Texture_format::TexFmt_R5G6B5

TexFmt_R5G6B5_L

Samples a 2D color gradient texture in R5G6B5 linear format.

Image with alpha
Test result for Texture_format::TexFmt_R5G6B5_L
Image as seen on display
No alpha test result for Texture_format::TexFmt_R5G6B5_L

TexFmt_R6G5B5

Samples a 2D color gradient texture in R6G5B5 swizzled format.

Image with alpha
Test result for Texture_format::TexFmt_R6G5B5
Image as seen on display
No alpha test result for Texture_format::TexFmt_R6G5B5

TexFmt_R8B8

Samples a 2D color gradient texture in R8B8 swizzled format.

Image with alpha
Test result for Texture_format::TexFmt_R8B8
Image as seen on display
No alpha test result for Texture_format::TexFmt_R8B8

TexFmt_R8G8B8A8

Samples a 2D color gradient texture in R8G8B8A8 swizzled format.

Image with alpha
Test result for Texture_format::TexFmt_R8G8B8A8
Image as seen on display
No alpha test result for Texture_format::TexFmt_R8G8B8A8

TexFmt_R8G8B8A8_L

Samples a 2D color gradient texture in R8G8B8A8 linear format.

Image with alpha
Test result for Texture_format::TexFmt_R8G8B8A8_L
Image as seen on display
No alpha test result for Texture_format::TexFmt_R8G8B8A8_L

TexFmt_SZ_Index8_p128

Samples an 8-bit palettized texture (SZ_I8_A8R8G8B8) configured with a 128-entry color palette.

Image with alpha
Test result for Texture_format::TexFmt_SZ_Index8_p128
Image as seen on display
No alpha test result for Texture_format::TexFmt_SZ_Index8_p128

TexFmt_SZ_Index8_p256

Samples an 8-bit palettized texture (SZ_I8_A8R8G8B8) configured with a 256-entry color palette.

Image with alpha
Test result for Texture_format::TexFmt_SZ_Index8_p256
Image as seen on display
No alpha test result for Texture_format::TexFmt_SZ_Index8_p256

TexFmt_SZ_Index8_p32

Samples an 8-bit palettized texture (SZ_I8_A8R8G8B8) configured with a 32-entry color palette.

Image with alpha
Test result for Texture_format::TexFmt_SZ_Index8_p32
Image as seen on display
No alpha test result for Texture_format::TexFmt_SZ_Index8_p32

TexFmt_SZ_Index8_p64

Samples an 8-bit palettized texture (SZ_I8_A8R8G8B8) configured with a 64-entry color palette.

Image with alpha
Test result for Texture_format::TexFmt_SZ_Index8_p64
Image as seen on display
No alpha test result for Texture_format::TexFmt_SZ_Index8_p64

TexFmt_UYVY_L

Samples a 2D color gradient texture in UYVY (LC_IMAGE_YB8CR8YA8CB8) linear YUV format.

Image with alpha
Test result for Texture_format::TexFmt_UYVY_L
Image as seen on display
No alpha test result for Texture_format::TexFmt_UYVY_L

TexFmt_X1R5G5B5

Samples a 2D color gradient texture in X1R5G5B5 swizzled format.

Image with alpha
Test result for Texture_format::TexFmt_X1R5G5B5
Image as seen on display
No alpha test result for Texture_format::TexFmt_X1R5G5B5

TexFmt_X1R5G5B5_L

Samples a 2D color gradient texture in X1R5G5B5 linear format.

Image with alpha
Test result for Texture_format::TexFmt_X1R5G5B5_L
Image as seen on display
No alpha test result for Texture_format::TexFmt_X1R5G5B5_L

TexFmt_X8R8G8B8

Samples a 2D color gradient texture in X8R8G8B8 swizzled format.

Image with alpha
Test result for Texture_format::TexFmt_X8R8G8B8
Image as seen on display
No alpha test result for Texture_format::TexFmt_X8R8G8B8

TexFmt_X8R8G8B8_L

Samples a 2D color gradient texture in X8R8G8B8 linear format.

Image with alpha
Test result for Texture_format::TexFmt_X8R8G8B8_L
Image as seen on display
No alpha test result for Texture_format::TexFmt_X8R8G8B8_L

TexFmt_Y16

Samples a 2D color gradient texture in Y16 swizzled format (NV097_SET_TEXTURE_FORMAT_COLOR_SZ_Y16, format 0x32).

Image with alpha
Test result for Texture_format::TexFmt_Y16
Image as seen on display
No alpha test result for Texture_format::TexFmt_Y16

TexFmt_Y16_L

Samples a 2D color gradient texture in Y16 linear format (NV097_SET_TEXTURE_FORMAT_COLOR_LU_IMAGE_Y16, format 0x35).

Image with alpha
Test result for Texture_format::TexFmt_Y16_L
Image as seen on display
No alpha test result for Texture_format::TexFmt_Y16_L

TexFmt_Y8

Samples a 2D color gradient texture in Y8 swizzled format.

Image with alpha
Test result for Texture_format::TexFmt_Y8
Image as seen on display
No alpha test result for Texture_format::TexFmt_Y8

TexFmt_Y8_L

Samples a 2D color gradient texture in Y8 linear format.

Image with alpha
Test result for Texture_format::TexFmt_Y8_L
Image as seen on display
No alpha test result for Texture_format::TexFmt_Y8_L

TexFmt_YUY2_L

Samples a 2D color gradient texture in YUY2 (LC_IMAGE_CR8YB8CB8YA8) linear YUV format.

Image with alpha
Test result for Texture_format::TexFmt_YUY2_L
Image as seen on display
No alpha test result for Texture_format::TexFmt_YUY2_L

XAlpha_A8R8G8B8_L

Baseline test verifying alpha channel sampling and blending behavior with an actual alpha channel (A8R8G8B8 linear).

Image with alpha
Test result for Texture_format::XAlpha_A8R8G8B8_L
Image as seen on display
No alpha test result for Texture_format::XAlpha_A8R8G8B8_L

XAlpha_X1R5G5B5

Tests that the unused X bit in X1R5G5B5 swizzled textures is treated as 1.0 (opaque) during sampling and blending.

Image with alpha
Test result for Texture_format::XAlpha_X1R5G5B5
Image as seen on display
No alpha test result for Texture_format::XAlpha_X1R5G5B5

XAlpha_X1R5G5B5_L

Tests that the unused X bit in X1R5G5B5 linear textures is treated as 1.0 (opaque) during sampling and blending.

Image with alpha
Test result for Texture_format::XAlpha_X1R5G5B5_L
Image as seen on display
No alpha test result for Texture_format::XAlpha_X1R5G5B5_L

XAlpha_X8R8G8B8

Tests that the unused X byte in X8R8G8B8 swizzled textures is treated as 0xFF (opaque) during sampling and blending.

Image with alpha
Test result for Texture_format::XAlpha_X8R8G8B8
Image as seen on display
No alpha test result for Texture_format::XAlpha_X8R8G8B8

XAlpha_X8R8G8B8_L

Tests that the unused X byte in X8R8G8B8 linear textures is treated as 0xFF (opaque) during sampling and blending.

Image with alpha
Test result for Texture_format::XAlpha_X8R8G8B8_L
Image as seen on display
No alpha test result for Texture_format::XAlpha_X8R8G8B8_L