|
|
@ -16,6 +16,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
namespace OpenGL {
|
|
|
|
namespace OpenGL {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
struct VertexArrayPushBuffer::Entry {
|
|
|
|
|
|
|
|
GLuint binding_index{};
|
|
|
|
|
|
|
|
const GLuint* buffer{};
|
|
|
|
|
|
|
|
GLintptr offset{};
|
|
|
|
|
|
|
|
GLsizei stride{};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
VertexArrayPushBuffer::VertexArrayPushBuffer() = default;
|
|
|
|
VertexArrayPushBuffer::VertexArrayPushBuffer() = default;
|
|
|
|
|
|
|
|
|
|
|
|
VertexArrayPushBuffer::~VertexArrayPushBuffer() = default;
|
|
|
|
VertexArrayPushBuffer::~VertexArrayPushBuffer() = default;
|
|
|
@ -47,6 +54,13 @@ void VertexArrayPushBuffer::Bind() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
struct BindBuffersRangePushBuffer::Entry {
|
|
|
|
|
|
|
|
GLuint binding;
|
|
|
|
|
|
|
|
const GLuint* buffer;
|
|
|
|
|
|
|
|
GLintptr offset;
|
|
|
|
|
|
|
|
GLsizeiptr size;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
BindBuffersRangePushBuffer::BindBuffersRangePushBuffer(GLenum target) : target{target} {}
|
|
|
|
BindBuffersRangePushBuffer::BindBuffersRangePushBuffer(GLenum target) : target{target} {}
|
|
|
|
|
|
|
|
|
|
|
|
BindBuffersRangePushBuffer::~BindBuffersRangePushBuffer() = default;
|
|
|
|
BindBuffersRangePushBuffer::~BindBuffersRangePushBuffer() = default;
|
|
|
|