Support depth-1 volume textures. (#3883)

This commit is contained in:
Branimir Karadžić
2026-08-12 18:24:25 -07:00
committed by GitHub
parent 0af3dac7bf
commit 3d3b08778e
11 changed files with 59 additions and 32 deletions
+1 -1
View File
@@ -2184,7 +2184,7 @@ namespace bgfx
&& 0 != (formatCaps & BGFX_CAPS_FORMAT_TEXTURE_CUBE_EMULATED)
;
}
else if (_imageContainer.m_depth > 1)
else if (isVolume(_imageContainer) )
{
convert |= 0 == (formatCaps & BGFX_CAPS_FORMAT_TEXTURE_3D)
&& 0 != (formatCaps & BGFX_CAPS_FORMAT_TEXTURE_3D_EMULATED)