[Feat] (MG_Util|MG_State/TextureState): Add TexturePixelDataType::HalfFloat and TexturePixelDataType::UnsignedInt248. Handle TexturePixelDataType::Float32UnsignedInt248Rev.

This commit is contained in:
BZLZHH
2026-01-01 13:17:25 +08:00
parent 21dcbc9e52
commit b68d2859e8
5 changed files with 42 additions and 24 deletions
@@ -253,6 +253,10 @@ namespace MobileGL {
return TexturePixelDataType::Int;
case GL_FLOAT:
return TexturePixelDataType::Float;
case GL_HALF_FLOAT:
return TexturePixelDataType::HalfFloat;
case GL_UNSIGNED_INT_24_8:
return TexturePixelDataType::UnsignedInt248;
case GL_UNSIGNED_BYTE_3_3_2:
return TexturePixelDataType::UnsignedByte332;
case GL_UNSIGNED_BYTE_2_3_3_REV:
@@ -246,6 +246,10 @@ namespace MobileGL {
return GL_INT;
case TexturePixelDataType::Float:
return GL_FLOAT;
case TexturePixelDataType::HalfFloat:
return GL_HALF_FLOAT;
case TexturePixelDataType::UnsignedInt248:
return GL_UNSIGNED_INT_24_8;
case TexturePixelDataType::UnsignedByte332:
return GL_UNSIGNED_BYTE_3_3_2;
case TexturePixelDataType::UnsignedByte233Rev:
@@ -246,6 +246,10 @@ namespace MobileGL {
return "Int";
case TexturePixelDataType::Float:
return "Float";
case TexturePixelDataType::HalfFloat:
return "HalfFloat";
case TexturePixelDataType::UnsignedInt248:
return "UnsignedInt248";
case TexturePixelDataType::UnsignedByte332:
return "UnsignedByte332";
case TexturePixelDataType::UnsignedByte233Rev: