[Feat] (MG_Backend/DirectGLES): Implement ClearBuffer* in backend.

This commit is contained in:
BZLZHH
2025-12-14 12:06:48 +08:00
parent 5071a98e00
commit de028204a2
4 changed files with 319 additions and 131 deletions
+3 -1
View File
@@ -58,7 +58,8 @@ namespace MobileGL::MG_Backend::DirectGLES {
bool operator==(const StateTextureBasicInfo& other) const {
return internalFormat == other.internalFormat && width == other.width && height == other.height &&
depth == other.depth && mipmapLevels == other.mipmapLevels && bufferExternalIndex == other.bufferExternalIndex;
depth == other.depth && mipmapLevels == other.mipmapLevels &&
bufferExternalIndex == other.bufferExternalIndex;
}
bool operator!=(const StateTextureBasicInfo& other) const { return !(*this == other); }
@@ -94,6 +95,7 @@ namespace MobileGL::MG_Backend::DirectGLES {
FramebufferTarget asTarget);
Uint GetBackendFramebufferId() { return m_backendFBOId; }
void Bind(FramebufferTarget target);
FramebufferAttachmentType GetCompactedAttachmentTypeAtDrawBufferIndex(Int index);
private:
Uint m_backendFBOId = 0;