[Fix] (MG_Util/TextureMetrics): fix wrong size of RGB16F, RGB16I, RGB16UI

This commit is contained in:
2026-01-04 16:38:18 +08:00
parent b281afe665
commit 7819a8e405
+5 -3
View File
@@ -60,6 +60,11 @@ namespace MobileGL {
case TextureInternalFormat::RG16F:
return 4;
case TextureInternalFormat::RGB16F:
case TextureInternalFormat::RGB16I:
case TextureInternalFormat::RGB16UI:
return 6;
case TextureInternalFormat::RGBA12:
case TextureInternalFormat::RGBA16:
case TextureInternalFormat::RGBA16I:
@@ -70,10 +75,7 @@ namespace MobileGL {
case TextureInternalFormat::RG32UI:
return 8;
case TextureInternalFormat::RGB16F:
case TextureInternalFormat::RGB32F:
case TextureInternalFormat::RGB16I:
case TextureInternalFormat::RGB16UI:
case TextureInternalFormat::RGB32I:
case TextureInternalFormat::RGB32UI:
return 12;