[Fix] (MG_Backend/DirectGLES): Actually compile shader and use.

* TODO: remove junk code.
This commit is contained in:
BZLZHH
2025-10-26 11:43:10 +08:00
parent b8d8188239
commit 5da6a0e05e
7 changed files with 168 additions and 25 deletions
@@ -44,6 +44,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(); }
Uint GetUBOSize() const { return static_cast<Uint>(m_uboScratch.size()); }
Bool GetDeleteStatus() const { return m_deleteStatus; }
Bool GetLinkStatus() const { return m_linkStatus; }
@@ -54,6 +55,8 @@ namespace MobileGL {
Int GetActiveAttributesMaxLength() const { return m_attribInNameMaxLength; }
Int GetActiveUniformBlocksMaxNameLength() const { return m_uniformBlockNameMaxLength; }
Vector<Vector<unsigned>>& GetGeneratedSpirv() { return m_generatedSpirv; }
private:
void DoReflection();
void GenerateBinary();