[Chore] (MG_State/VertexArrayState): add const getter to index buffer binding slot

This commit is contained in:
2026-03-17 15:55:16 +08:00
parent 87122973be
commit 09aeee4c03
2 changed files with 6 additions and 0 deletions
@@ -85,6 +85,11 @@ namespace MobileGL::MG_State::GLState {
return m_indexBufferBindingSlot;
}
const BindingSlot<BufferObject>& VertexArrayObject::GetIndexBufferBindingSlot() const {
return m_indexBufferBindingSlot;
}
const VertexAttribute& VertexArrayObject::GetAttribute(Uint index) const {
static VertexAttribute emptyAttr;
if (index >= MAX_VERTEX_ATTRIBS) return emptyAttr;
@@ -48,6 +48,7 @@ namespace MobileGL {
void BindAttributeBuffer(Uint index, const SharedPtr<BufferObject>& buffer);
BindingSlot<BufferObject>& GetIndexBufferBindingSlot();
const BindingSlot<BufferObject>& GetIndexBufferBindingSlot() const;
const VertexAttribute& GetAttribute(Uint index) const;
const Array<VertexAttribute, MAX_VERTEX_ATTRIBS>& GetAllAttributes() const;