NVNformat

nvn.h

The Vulkan format whose texels are laid out as the NVN format's, as ScarletNX's tables give it (nvn_tic_format.inc, then vk/format.c); a block-compressed format the GPU can't sample, ScarletNX decodes. The link is the format's definition on docs.vulkan.org.

Page 1 2 3

NameValueVulkan format
NVN_FORMAT_RGBA32I0x30VK_FORMAT_R32G32B32A32_SINT
NVN_FORMAT_STENCIL80x31VK_FORMAT_D24_UNORM_S8_UINT
NVN_FORMAT_DEPTH160x32VK_FORMAT_D16_UNORM
NVN_FORMAT_DEPTH240x33VK_FORMAT_D24_UNORM_S8_UINT
NVN_FORMAT_DEPTH32F0x34VK_FORMAT_D32_SFLOAT
NVN_FORMAT_DEPTH24_STENCIL80x35VK_FORMAT_D24_UNORM_S8_UINT
NVN_FORMAT_DEPTH32F_STENCIL80x36VK_FORMAT_D32_SFLOAT_S8_UINT
NVN_FORMAT_RGBX8_SRGB0x37VK_FORMAT_R8G8B8A8_SRGB
NVN_FORMAT_RGBA8_SRGB0x38VK_FORMAT_R8G8B8A8_SRGB
NVN_FORMAT_RGBA40x39VK_FORMAT_R8G8B8A8_UNORM (converted to it on upload)
NVN_FORMAT_RGB50x3AVK_FORMAT_R8G8B8A8_UNORM (converted to it on upload)
NVN_FORMAT_RGB5A10x3BVK_FORMAT_R8G8B8A8_UNORM (converted to it on upload)
NVN_FORMAT_RGB5650x3CVK_FORMAT_B5G6R5_UNORM_PACK16
NVN_FORMAT_RGB10A20x3DVK_FORMAT_A2B10G10R10_UNORM_PACK32
NVN_FORMAT_RGB10A2UI0x3EVK_FORMAT_A2B10G10R10_UINT_PACK32
NVN_FORMAT_R11G11B10F0x3FVK_FORMAT_B10G11R11_UFLOAT_PACK32
NVN_FORMAT_RGB9E5F0x40VK_FORMAT_E5B9G9R9_UFLOAT_PACK32
NVN_FORMAT_RGB_DXT10x41VK_FORMAT_BC1_RGBA_UNORM_BLOCK
NVN_FORMAT_RGBA_DXT10x42VK_FORMAT_BC1_RGBA_UNORM_BLOCK
NVN_FORMAT_RGBA_DXT30x43VK_FORMAT_BC2_UNORM_BLOCK
NVN_FORMAT_RGBA_DXT50x44VK_FORMAT_BC3_UNORM_BLOCK
NVN_FORMAT_RGB_DXT1_SRGB0x45VK_FORMAT_BC1_RGBA_SRGB_BLOCK
NVN_FORMAT_RGBA_DXT1_SRGB0x46VK_FORMAT_BC1_RGBA_SRGB_BLOCK
NVN_FORMAT_RGBA_DXT3_SRGB0x47VK_FORMAT_BC2_SRGB_BLOCK
NVN_FORMAT_RGBA_DXT5_SRGB0x48VK_FORMAT_BC3_SRGB_BLOCK
NVN_FORMAT_RGTC1_UNORM0x49VK_FORMAT_BC4_UNORM_BLOCK
NVN_FORMAT_RGTC1_SNORM0x4AVK_FORMAT_BC4_SNORM_BLOCK
NVN_FORMAT_RGTC2_UNORM0x4BVK_FORMAT_BC5_UNORM_BLOCK
NVN_FORMAT_RGTC2_SNORM0x4CVK_FORMAT_BC5_SNORM_BLOCK
NVN_FORMAT_BPTC_UNORM0x4DVK_FORMAT_BC7_UNORM_BLOCK
NVN_FORMAT_BPTC_UNORM_SRGB0x4EVK_FORMAT_BC7_SRGB_BLOCK
NVN_FORMAT_BPTC_SFLOAT0x4FVK_FORMAT_BC6H_SFLOAT_BLOCK
NVN_FORMAT_BPTC_UFLOAT0x50VK_FORMAT_BC6H_UFLOAT_BLOCK
NVN_FORMAT_R8_UI2F0x51(none: ScarletNX has no texture descriptor for it)
NVN_FORMAT_R8_I2F0x52(none: ScarletNX has no texture descriptor for it)
NVN_FORMAT_R16_UI2F0x53(none: ScarletNX has no texture descriptor for it)
NVN_FORMAT_R16_I2F0x54(none: ScarletNX has no texture descriptor for it)
NVN_FORMAT_R32_UI2F0x55(none: ScarletNX has no texture descriptor for it)
NVN_FORMAT_R32_I2F0x56(none: ScarletNX has no texture descriptor for it)
NVN_FORMAT_RG8_UI2F0x57(none: ScarletNX has no texture descriptor for it)
NVN_FORMAT_RG8_I2F0x58(none: ScarletNX has no texture descriptor for it)
NVN_FORMAT_RG16_UI2F0x59(none: ScarletNX has no texture descriptor for it)
NVN_FORMAT_RG16_I2F0x5A(none: ScarletNX has no texture descriptor for it)
NVN_FORMAT_RG32_UI2F0x5B(none: ScarletNX has no texture descriptor for it)
NVN_FORMAT_RG32_I2F0x5C(none: ScarletNX has no texture descriptor for it)
NVN_FORMAT_RGB8_UI2F0x5D(none: ScarletNX has no texture descriptor for it)
NVN_FORMAT_RGB8_I2F0x5E(none: ScarletNX has no texture descriptor for it)
NVN_FORMAT_RGB16_UI2F0x5F(none: ScarletNX has no texture descriptor for it)
NVN_FORMAT_RGB16_I2F0x60(none: ScarletNX has no texture descriptor for it)
NVN_FORMAT_RGB32_UI2F0x61(none: ScarletNX has no texture descriptor for it)
NVN_FORMAT_RGB32_I2F0x62(none: ScarletNX has no texture descriptor for it)
NVN_FORMAT_RGBA8_UI2F0x63(none: ScarletNX has no texture descriptor for it)
NVN_FORMAT_RGBA8_I2F0x64(none: ScarletNX has no texture descriptor for it)
NVN_FORMAT_RGBA16_UI2F0x65(none: ScarletNX has no texture descriptor for it)
NVN_FORMAT_RGBA16_I2F0x66(none: ScarletNX has no texture descriptor for it)
NVN_FORMAT_RGBA32_UI2F0x67(none: ScarletNX has no texture descriptor for it)
NVN_FORMAT_RGBA32_I2F0x68(none: ScarletNX has no texture descriptor for it)
NVN_FORMAT_RGB10A2SN0x69(none: ScarletNX has no texture descriptor for it)
NVN_FORMAT_RGB10A2I0x6A(none: ScarletNX has no texture descriptor for it)
NVN_FORMAT_RGB10A2_UI2F0x6B(none: ScarletNX has no texture descriptor for it)

Page 1 2 3


Made from ScarletNX's Sail at 166ad3910f80. nvn.h is h1k421's reconstruction (MIT); nvn.hook, the handlers and the format table ScarletNX's (GPL-3.0-or-later). The Switch 2 marks are the drivers' procedure tables (tools/manual/nvn-drivers.txt).