flowchart TB
A["hollowcube mesh:
position, normal, colour"] --> B["vertex shader
reads a_texcoord0"]
B --> C{"bgfx renderer"}
C -- "D3D12" --> D["input element TEXCOORD0:
float2 at offset 0"]
D --> E["UV = position x, y:
stone texture on the cubes"]
E --> F["mtl12 draws what
D3D12 asks for"]
C -- "Metal" --> G["fallback attribute:
UChar2 at offset 0"]
G --> H["integer UVs:
one texel, flat cubes"]
H --> I["the reference differs
from the D3D12 image"]