[Feat] (MG_Backend/DirectVulkan): implements uniform, ubo

This commit is contained in:
2026-02-17 17:16:08 +08:00
parent f7ea6cd1d9
commit fe6e7902d3
9 changed files with 476 additions and 4 deletions
@@ -69,6 +69,7 @@ namespace MobileGL {
GLenum GetAttribType(Uint index) const { return m_attribTypes[index]; }
const String& GetAttribName(Uint index) const { return m_attribs[index]; }
void* MapUBO() { return m_uboScratch.data(); }
const void* GetUBOData() const { return m_uboScratch.data(); }
Uint GetUBOSize() const { return static_cast<Uint>(m_uboScratch.size()); }
void SetUniformSamplerOrImageUnitIndex(Uint location, Int unit) {