[Feat] (Diligent): add dynamic vertex buffer upload path

DiligentRenderer can now upload arbitrary vec2 vertex data into a dynamic
vertex buffer and draw it with the existing triangle PSO. The local sanity
test uses this path instead of the hardcoded triangle, verifying buffer
basics on Turnip Adreno 750.
This commit is contained in:
BZLZHH
2026-08-18 13:01:29 +08:00
parent 9776cc8047
commit 8b2711e32a
3 changed files with 53 additions and 2 deletions
@@ -42,6 +42,7 @@ namespace MobileGL::MG_Backend::DiligentBackend {
Bool Initialize(Uint32 width, Uint32 height);
void Clear(Float r, Float g, Float b, Float a);
void DrawTriangle();
void DrawVertices(const Float* vertices, Uint32 vertexCount);
void ReadPixels(Uint32 x, Uint32 y, Uint32 width, Uint32 height, void* pixels);
void Present();