[Refactor] (MG_State/Texture): decouple texture object and mipmap storage

This commit is contained in:
2025-12-06 22:24:30 +08:00
parent 6293f3f0ab
commit ab6d9f60e7
9 changed files with 173 additions and 98 deletions
@@ -24,7 +24,7 @@ namespace MobileGL {
protected:
Uint GetIndexOfTextureUploadTarget(TextureUploadTarget target) const override;
TextureStorage<6> m_textureStorage;
MipmapUploadTargetArray<6> m_textureStorage;
const Vector<TextureUploadTarget> m_uploadTargets{
TextureUploadTarget::CubeMapPositiveX, TextureUploadTarget::CubeMapNegativeX,
TextureUploadTarget::CubeMapPositiveY, TextureUploadTarget::CubeMapNegativeY,