[Feat] (...): Add GLES Backend.

This commit is contained in:
BZLZHH
2025-04-26 12:03:42 +08:00
parent adbadbba30
commit 91fa9e2d01
453 changed files with 70432 additions and 58 deletions
+2 -1
View File
@@ -40,6 +40,7 @@ public:
TextureParams params;
const void* data = nullptr;
bool IsImmutable() const;
uint64_t createTimestamp;
};
class TextureUnitState {
@@ -60,7 +61,6 @@ private:
GLuint lastUsedID = 0;
std::set<GLuint> freeIDs;
std::unordered_map<GLuint, TextureObject> textures;
std::unordered_map<GLenum, TextureObject> proxyTextures;
public:
TextureState();
@@ -68,6 +68,7 @@ public:
static TextureState& GetInstance();
bool IsTextureGenerated(GLuint texture);
bool IsTexture(GLuint texture);
std::unordered_map<GLuint, TextureObject> textures;
// Return: the validity of the operation, according to OpenGL 3 standard
GLenum BindUnit(GLenum textureUnit);