mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-11 13:48:30 +09:00
[Fix] (MG_State/Buffer): pass PingPong test
This commit is contained in:
@@ -5,6 +5,12 @@ namespace MobileGL {
|
||||
namespace GLState {
|
||||
class BufferState {
|
||||
public:
|
||||
BufferState() {
|
||||
for (SizeT i = 0; i < (SizeT)BufferTarget::BufferTargetCount; ++i) {
|
||||
m_bindingSlots[i] = BindingSlot<BufferObject>((BufferTarget)i);
|
||||
}
|
||||
}
|
||||
|
||||
SharedPtr<BufferObject> GetBufferObject(Uint index);
|
||||
Vector<Uint> GenerateNames(Uint number);
|
||||
SharedPtr<BufferObject> CreateBufferObject(Uint index);
|
||||
@@ -13,7 +19,7 @@ namespace MobileGL {
|
||||
private:
|
||||
UnorderedMap<Uint, SharedPtr<BufferObject>> m_bufferObjects;
|
||||
IndexGenerator<Uint> m_indexGenerator;
|
||||
Vector<BindingSlot<BufferObject>> m_bindingSlots;
|
||||
Array<BindingSlot<BufferObject>, (SizeT)BufferTarget::BufferTargetCount> m_bindingSlots;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user