Index

Most games' textures are BC1 to BC7. Desktop GPUs sample them as they are; most phone GPUs (Mali, Adreno with Qualcomm's own driver, PowerVR) sample ETC2, EAC and ASTC instead, and not BCn. There ScarletNX encodes each BCn level again on the GPU as it loads, into the ETC2 or EAC format of the same bytes a texel, where decoding it would take four to eight times the memory.

BCnwhere the GPU samples ETC2bytes a texeldecoded (no ETC2 either)bytes a texel
BC1ASTC 4x4 (1 byte a texel) while memory lasts, then ETC2 RGB8A1 (punch-through alpha: BC1's transparent black; bcn_astc, below)0.5RGBA84
BC2, BC3, BC7ASTC 4x4 where the GPU samples ASTC (bcn_astc, below), else ETC2 RGBA8 (an EAC alpha block, then an ETC2 RGB one)1RGBA84
BC4EAC R11, unsigned or signed0.5R162
BC5EAC RG11, unsigned or signed1RG164
BC6Hnone (ETC2 has no HDR): decoded8RGBA16F8

format.c picks it (TB), from the features vk_blocks_want turns on: textureCompressionBC and the native_bc setting for BCn as it is, else textureCompressionETC2 with native_etc2 for ETC2. A 3D BCn texture is decoded where the device makes no 3D image of the ETC2 format. As the device starts, the log says how each family is held, from the formats vk_tic_format picks (vk_blocks_say), on a Mali-G52 for instance:

vulkan: ASTC textures (native_astc=1, the GPU samples ASTC, astc_textures=0): sampled as the game's blocks: ASTC
vulkan: ETC2 and EAC textures (native_etc2=1, the GPU samples ETC2): sampled as the game's blocks: ETC2 RGB, ...
vulkan: BCn textures (native_bc=1, the GPU samples no BCn, ETC2 sampled): encoded again on the GPU: BC1 as ETC2
RGB8A1, BC2 as ETC2 RGBA8, BC3 as ETC2 RGBA8, BC4 as EAC R11, BC5 as EAC RG11, BC7 as ETC2 RGBA8; decoded on the
GPU: BC6H to RGBA16F

Made from docs/layers/gpu/bcn.md at 69237645142c. GPL-3.0-or-later.