mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-12 14:18:31 +09:00
[Fix] (MG_Util/TextureMetrics): fix wrong size of RGB16F, RGB16I, RGB16UI
This commit is contained in:
@@ -60,6 +60,11 @@ namespace MobileGL {
|
|||||||
case TextureInternalFormat::RG16F:
|
case TextureInternalFormat::RG16F:
|
||||||
return 4;
|
return 4;
|
||||||
|
|
||||||
|
case TextureInternalFormat::RGB16F:
|
||||||
|
case TextureInternalFormat::RGB16I:
|
||||||
|
case TextureInternalFormat::RGB16UI:
|
||||||
|
return 6;
|
||||||
|
|
||||||
case TextureInternalFormat::RGBA12:
|
case TextureInternalFormat::RGBA12:
|
||||||
case TextureInternalFormat::RGBA16:
|
case TextureInternalFormat::RGBA16:
|
||||||
case TextureInternalFormat::RGBA16I:
|
case TextureInternalFormat::RGBA16I:
|
||||||
@@ -70,10 +75,7 @@ namespace MobileGL {
|
|||||||
case TextureInternalFormat::RG32UI:
|
case TextureInternalFormat::RG32UI:
|
||||||
return 8;
|
return 8;
|
||||||
|
|
||||||
case TextureInternalFormat::RGB16F:
|
|
||||||
case TextureInternalFormat::RGB32F:
|
case TextureInternalFormat::RGB32F:
|
||||||
case TextureInternalFormat::RGB16I:
|
|
||||||
case TextureInternalFormat::RGB16UI:
|
|
||||||
case TextureInternalFormat::RGB32I:
|
case TextureInternalFormat::RGB32I:
|
||||||
case TextureInternalFormat::RGB32UI:
|
case TextureInternalFormat::RGB32UI:
|
||||||
return 12;
|
return 12;
|
||||||
|
|||||||
Reference in New Issue
Block a user