Skip to content

Commit

Permalink
GL serialisation markup for Offset, Size type fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Zorro666 committed Nov 13, 2023
1 parent 151fcf3 commit 287ba6c
Show file tree
Hide file tree
Showing 5 changed files with 68 additions and 68 deletions.
72 changes: 36 additions & 36 deletions renderdoc/driver/gl/wrappers/gl_buffer_funcs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -958,9 +958,9 @@ bool WrappedOpenGL::Serialise_glNamedBufferSubDataEXT(SerialiserType &ser, GLuin
const void *data)
{
SERIALISE_ELEMENT_LOCAL(buffer, BufferRes(GetCtx(), bufferHandle)).Important();
SERIALISE_ELEMENT_LOCAL(offset, (uint64_t)offsetPtr);
SERIALISE_ELEMENT_LOCAL(offset, (uint64_t)offsetPtr).OffsetOrSize();

SERIALISE_ELEMENT_LOCAL(bytesize, (uint64_t)size);
SERIALISE_ELEMENT_LOCAL(bytesize, (uint64_t)size).OffsetOrSize();
SERIALISE_ELEMENT_ARRAY(data, bytesize).Important();

SERIALISE_CHECK_READ_ERRORS();
Expand Down Expand Up @@ -1099,9 +1099,9 @@ bool WrappedOpenGL::Serialise_glNamedCopyBufferSubDataEXT(SerialiserType &ser,
{
SERIALISE_ELEMENT_LOCAL(readBuffer, BufferRes(GetCtx(), readBufferHandle)).Important();
SERIALISE_ELEMENT_LOCAL(writeBuffer, BufferRes(GetCtx(), writeBufferHandle)).Important();
SERIALISE_ELEMENT_LOCAL(readOffset, (uint64_t)readOffsetPtr);
SERIALISE_ELEMENT_LOCAL(writeOffset, (uint64_t)writeOffsetPtr);
SERIALISE_ELEMENT_LOCAL(size, (uint64_t)sizePtr);
SERIALISE_ELEMENT_LOCAL(readOffset, (uint64_t)readOffsetPtr).OffsetOrSize();
SERIALISE_ELEMENT_LOCAL(writeOffset, (uint64_t)writeOffsetPtr).OffsetOrSize();
SERIALISE_ELEMENT_LOCAL(size, (uint64_t)sizePtr).OffsetOrSize();

SERIALISE_CHECK_READ_ERRORS();

Expand Down Expand Up @@ -1432,8 +1432,8 @@ bool WrappedOpenGL::Serialise_glBindBufferRange(SerialiserType &ser, GLenum targ
SERIALISE_ELEMENT(target).Important();
SERIALISE_ELEMENT(index).Important();
SERIALISE_ELEMENT_LOCAL(buffer, BufferRes(GetCtx(), bufferHandle)).Important();
SERIALISE_ELEMENT_LOCAL(offset, (uint64_t)offsetPtr);
SERIALISE_ELEMENT_LOCAL(size, (uint64_t)sizePtr);
SERIALISE_ELEMENT_LOCAL(offset, (uint64_t)offsetPtr).OffsetOrSize();
SERIALISE_ELEMENT_LOCAL(size, (uint64_t)sizePtr).OffsetOrSize();

SERIALISE_CHECK_READ_ERRORS();

Expand Down Expand Up @@ -1784,8 +1784,8 @@ bool WrappedOpenGL::Serialise_glBindBuffersRange(SerialiserType &ser, GLenum tar
SERIALISE_ELEMENT(first).Important();
SERIALISE_ELEMENT(count);
SERIALISE_ELEMENT(buffers).Important();
SERIALISE_ELEMENT(offsets);
SERIALISE_ELEMENT(sizes);
SERIALISE_ELEMENT(offsets).OffsetOrSize();
SERIALISE_ELEMENT(sizes).OffsetOrSize();

SERIALISE_CHECK_READ_ERRORS();

Expand Down Expand Up @@ -2052,8 +2052,8 @@ bool WrappedOpenGL::Serialise_glInvalidateBufferSubData(SerialiserType &ser, GLu
GLintptr offsetPtr, GLsizeiptr lengthPtr)
{
SERIALISE_ELEMENT_LOCAL(buffer, BufferRes(GetCtx(), bufferHandle)).Important();
SERIALISE_ELEMENT_LOCAL(offset, (uint64_t)offsetPtr);
SERIALISE_ELEMENT_LOCAL(length, (uint64_t)lengthPtr);
SERIALISE_ELEMENT_LOCAL(offset, (uint64_t)offsetPtr).OffsetOrSize();
SERIALISE_ELEMENT_LOCAL(length, (uint64_t)lengthPtr).OffsetOrSize();

SERIALISE_CHECK_READ_ERRORS();

Expand Down Expand Up @@ -2599,8 +2599,8 @@ bool WrappedOpenGL::Serialise_glUnmapNamedBufferEXT(SerialiserType &ser, GLuint
record = GetResourceManager()->GetResourceRecord(BufferRes(GetCtx(), bufferHandle));

SERIALISE_ELEMENT_LOCAL(buffer, BufferRes(GetCtx(), bufferHandle));
SERIALISE_ELEMENT_LOCAL(offset, (uint64_t)record->Map.offset);
SERIALISE_ELEMENT_LOCAL(length, (uint64_t)record->Map.length);
SERIALISE_ELEMENT_LOCAL(offset, (uint64_t)record->Map.offset).OffsetOrSize();
SERIALISE_ELEMENT_LOCAL(length, (uint64_t)record->Map.length).OffsetOrSize();

uint64_t diffStart = 0;
uint64_t diffEnd = (size_t)length;
Expand Down Expand Up @@ -2854,8 +2854,8 @@ bool WrappedOpenGL::Serialise_glFlushMappedNamedBufferRangeEXT(SerialiserType &s
// see above glMapNamedBufferRangeEXT for high-level explanation of how mapping is handled

SERIALISE_ELEMENT_LOCAL(buffer, BufferRes(GetCtx(), bufferHandle));
SERIALISE_ELEMENT_LOCAL(offset, (uint64_t)offsetPtr);
SERIALISE_ELEMENT_LOCAL(length, (uint64_t)lengthPtr);
SERIALISE_ELEMENT_LOCAL(offset, (uint64_t)offsetPtr).OffsetOrSize();
SERIALISE_ELEMENT_LOCAL(length, (uint64_t)lengthPtr).OffsetOrSize();

GLResourceRecord *record = NULL;

Expand Down Expand Up @@ -3306,8 +3306,8 @@ bool WrappedOpenGL::Serialise_glTransformFeedbackBufferRange(SerialiserType &ser
SERIALISE_ELEMENT_LOCAL(xfb, FeedbackRes(GetCtx(), xfbHandle));
SERIALISE_ELEMENT(index);
SERIALISE_ELEMENT_LOCAL(buffer, BufferRes(GetCtx(), bufferHandle));
SERIALISE_ELEMENT_LOCAL(offset, (uint64_t)offsetPtr);
SERIALISE_ELEMENT_LOCAL(size, (uint64_t)sizePtr);
SERIALISE_ELEMENT_LOCAL(offset, (uint64_t)offsetPtr).OffsetOrSize();
SERIALISE_ELEMENT_LOCAL(size, (uint64_t)sizePtr).OffsetOrSize();

SERIALISE_CHECK_READ_ERRORS();

Expand Down Expand Up @@ -3538,11 +3538,11 @@ bool WrappedOpenGL::Serialise_glVertexArrayVertexAttribOffsetEXT(
SERIALISE_ELEMENT_LOCAL(vaobj, VertexArrayRes(GetCtx(), vaobjHandle));
SERIALISE_ELEMENT_LOCAL(buffer, BufferRes(GetCtx(), bufferHandle));
SERIALISE_ELEMENT(index);
SERIALISE_ELEMENT(size);
SERIALISE_ELEMENT(size).OffsetOrSize();
SERIALISE_ELEMENT(type);
SERIALISE_ELEMENT_TYPED(bool, normalized);
SERIALISE_ELEMENT(stride);
SERIALISE_ELEMENT_LOCAL(offset, (uint64_t)offsetPtr);
SERIALISE_ELEMENT(stride).OffsetOrSize();
SERIALISE_ELEMENT_LOCAL(offset, (uint64_t)offsetPtr).OffsetOrSize();

SERIALISE_CHECK_READ_ERRORS();

Expand Down Expand Up @@ -3668,10 +3668,10 @@ bool WrappedOpenGL::Serialise_glVertexArrayVertexAttribIOffsetEXT(SerialiserType
SERIALISE_ELEMENT_LOCAL(vaobj, VertexArrayRes(GetCtx(), vaobjHandle));
SERIALISE_ELEMENT_LOCAL(buffer, BufferRes(GetCtx(), bufferHandle));
SERIALISE_ELEMENT(index);
SERIALISE_ELEMENT(size);
SERIALISE_ELEMENT(size).OffsetOrSize();
SERIALISE_ELEMENT(type);
SERIALISE_ELEMENT(stride);
SERIALISE_ELEMENT_LOCAL(offset, (uint64_t)offsetPtr);
SERIALISE_ELEMENT(stride).OffsetOrSize();
SERIALISE_ELEMENT_LOCAL(offset, (uint64_t)offsetPtr).OffsetOrSize();

SERIALISE_CHECK_READ_ERRORS();

Expand Down Expand Up @@ -3796,10 +3796,10 @@ bool WrappedOpenGL::Serialise_glVertexArrayVertexAttribLOffsetEXT(SerialiserType
SERIALISE_ELEMENT_LOCAL(vaobj, VertexArrayRes(GetCtx(), vaobjHandle));
SERIALISE_ELEMENT_LOCAL(buffer, BufferRes(GetCtx(), bufferHandle));
SERIALISE_ELEMENT(index);
SERIALISE_ELEMENT(size);
SERIALISE_ELEMENT(size).OffsetOrSize();
SERIALISE_ELEMENT(type);
SERIALISE_ELEMENT(stride);
SERIALISE_ELEMENT_LOCAL(offset, (uint64_t)offsetPtr);
SERIALISE_ELEMENT(stride).OffsetOrSize();
SERIALISE_ELEMENT_LOCAL(offset, (uint64_t)offsetPtr).OffsetOrSize();

SERIALISE_CHECK_READ_ERRORS();

Expand Down Expand Up @@ -4007,10 +4007,10 @@ bool WrappedOpenGL::Serialise_glVertexArrayVertexAttribFormatEXT(SerialiserType
{
SERIALISE_ELEMENT_LOCAL(vaobj, VertexArrayRes(GetCtx(), vaobjHandle));
SERIALISE_ELEMENT(attribindex);
SERIALISE_ELEMENT(size);
SERIALISE_ELEMENT(size).OffsetOrSize();
SERIALISE_ELEMENT(type);
SERIALISE_ELEMENT_TYPED(bool, normalized);
SERIALISE_ELEMENT(relativeoffset);
SERIALISE_ELEMENT(relativeoffset).OffsetOrSize();

SERIALISE_CHECK_READ_ERRORS();

Expand Down Expand Up @@ -4100,9 +4100,9 @@ bool WrappedOpenGL::Serialise_glVertexArrayVertexAttribIFormatEXT(SerialiserType
{
SERIALISE_ELEMENT_LOCAL(vaobj, VertexArrayRes(GetCtx(), vaobjHandle));
SERIALISE_ELEMENT(attribindex);
SERIALISE_ELEMENT(size);
SERIALISE_ELEMENT(size).OffsetOrSize();
SERIALISE_ELEMENT(type);
SERIALISE_ELEMENT(relativeoffset);
SERIALISE_ELEMENT(relativeoffset).OffsetOrSize();

SERIALISE_CHECK_READ_ERRORS();

Expand Down Expand Up @@ -4189,9 +4189,9 @@ bool WrappedOpenGL::Serialise_glVertexArrayVertexAttribLFormatEXT(SerialiserType
{
SERIALISE_ELEMENT_LOCAL(vaobj, VertexArrayRes(GetCtx(), vaobjHandle));
SERIALISE_ELEMENT(attribindex);
SERIALISE_ELEMENT(size);
SERIALISE_ELEMENT(size).OffsetOrSize();
SERIALISE_ELEMENT(type);
SERIALISE_ELEMENT(relativeoffset);
SERIALISE_ELEMENT(relativeoffset).OffsetOrSize();

SERIALISE_CHECK_READ_ERRORS();

Expand Down Expand Up @@ -4797,8 +4797,8 @@ bool WrappedOpenGL::Serialise_glVertexArrayBindVertexBufferEXT(SerialiserType &s
SERIALISE_ELEMENT_LOCAL(vaobj, VertexArrayRes(GetCtx(), vaobjHandle)).Important();
SERIALISE_ELEMENT(bindingindex).Important();
SERIALISE_ELEMENT_LOCAL(buffer, BufferRes(GetCtx(), bufferHandle)).Important();
SERIALISE_ELEMENT_LOCAL(offset, (uint64_t)offsetPtr);
SERIALISE_ELEMENT(stride);
SERIALISE_ELEMENT_LOCAL(offset, (uint64_t)offsetPtr).OffsetOrSize();
SERIALISE_ELEMENT(stride).OffsetOrSize();

SERIALISE_CHECK_READ_ERRORS();

Expand Down Expand Up @@ -4922,8 +4922,8 @@ bool WrappedOpenGL::Serialise_glVertexArrayVertexBuffers(SerialiserType &ser, GL
SERIALISE_ELEMENT(first).Important();
SERIALISE_ELEMENT(count);
SERIALISE_ELEMENT(buffers).Important();
SERIALISE_ELEMENT(offsets);
SERIALISE_ELEMENT_ARRAY(strides, count);
SERIALISE_ELEMENT(offsets).OffsetOrSize();
SERIALISE_ELEMENT_ARRAY(strides, count).OffsetOrSize();

SERIALISE_CHECK_READ_ERRORS();

Expand Down
26 changes: 13 additions & 13 deletions renderdoc/driver/gl/wrappers/gl_draw_funcs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ void WrappedOpenGL::glDispatchComputeGroupSizeARB(GLuint num_groups_x, GLuint nu
template <typename SerialiserType>
bool WrappedOpenGL::Serialise_glDispatchComputeIndirect(SerialiserType &ser, GLintptr indirect)
{
SERIALISE_ELEMENT_LOCAL(offset, (uint64_t)indirect).Important();
SERIALISE_ELEMENT_LOCAL(offset, (uint64_t)indirect).Important().OffsetOrSize();

Serialise_DebugMessages(ser);

Expand Down Expand Up @@ -1206,7 +1206,7 @@ bool WrappedOpenGL::Serialise_glDrawArraysIndirect(SerialiserType &ser, GLenum m
const void *indirect)
{
SERIALISE_ELEMENT_TYPED(GLdrawmode, mode);
SERIALISE_ELEMENT_LOCAL(offset, (uint64_t)indirect).Important();
SERIALISE_ELEMENT_LOCAL(offset, (uint64_t)indirect).Important().OffsetOrSize();

Serialise_DebugMessages(ser);

Expand Down Expand Up @@ -1518,7 +1518,7 @@ bool WrappedOpenGL::Serialise_glDrawElementsIndirect(SerialiserType &ser, GLenum
{
SERIALISE_ELEMENT_TYPED(GLdrawmode, mode);
SERIALISE_ELEMENT(type);
SERIALISE_ELEMENT_LOCAL(offset, (uint64_t)indirect).Important();
SERIALISE_ELEMENT_LOCAL(offset, (uint64_t)indirect).Important().OffsetOrSize();

Serialise_DebugMessages(ser);

Expand Down Expand Up @@ -2680,9 +2680,9 @@ bool WrappedOpenGL::Serialise_glMultiDrawArraysIndirect(SerialiserType &ser, GLe
GLsizei stride)
{
SERIALISE_ELEMENT_TYPED(GLdrawmode, mode);
SERIALISE_ELEMENT_LOCAL(offset, (uint64_t)indirect).Important();
SERIALISE_ELEMENT_LOCAL(offset, (uint64_t)indirect).Important().OffsetOrSize();
SERIALISE_ELEMENT(drawcount).Important();
SERIALISE_ELEMENT(stride);
SERIALISE_ELEMENT(stride).OffsetOrSize();

Serialise_DebugMessages(ser);

Expand Down Expand Up @@ -2901,9 +2901,9 @@ bool WrappedOpenGL::Serialise_glMultiDrawElementsIndirect(SerialiserType &ser, G
{
SERIALISE_ELEMENT_TYPED(GLdrawmode, mode);
SERIALISE_ELEMENT(type);
SERIALISE_ELEMENT_LOCAL(offset, (uint64_t)indirect).Important();
SERIALISE_ELEMENT_LOCAL(offset, (uint64_t)indirect).Important().OffsetOrSize();
SERIALISE_ELEMENT(drawcount).Important();
SERIALISE_ELEMENT(stride);
SERIALISE_ELEMENT(stride).OffsetOrSize();

Serialise_DebugMessages(ser);

Expand Down Expand Up @@ -3131,10 +3131,10 @@ bool WrappedOpenGL::Serialise_glMultiDrawArraysIndirectCount(SerialiserType &ser
GLsizei maxdrawcount, GLsizei stride)
{
SERIALISE_ELEMENT_TYPED(GLdrawmode, mode);
SERIALISE_ELEMENT_LOCAL(offset, (uint64_t)indirect).Important();
SERIALISE_ELEMENT_LOCAL(offset, (uint64_t)indirect).Important().OffsetOrSize();
SERIALISE_ELEMENT_LOCAL(drawcount, (uint64_t)drawcountPtr).Important();
SERIALISE_ELEMENT(maxdrawcount).Important();
SERIALISE_ELEMENT(stride);
SERIALISE_ELEMENT(stride).OffsetOrSize();

Serialise_DebugMessages(ser);

Expand Down Expand Up @@ -3364,10 +3364,10 @@ bool WrappedOpenGL::Serialise_glMultiDrawElementsIndirectCount(SerialiserType &s
{
SERIALISE_ELEMENT_TYPED(GLdrawmode, mode);
SERIALISE_ELEMENT(type);
SERIALISE_ELEMENT_LOCAL(offset, (uint64_t)indirect).Important();
SERIALISE_ELEMENT_LOCAL(offset, (uint64_t)indirect).Important().OffsetOrSize();
SERIALISE_ELEMENT_LOCAL(drawcount, (uint64_t)drawcountPtr).Important();
SERIALISE_ELEMENT(maxdrawcount).Important();
SERIALISE_ELEMENT(stride);
SERIALISE_ELEMENT(stride).OffsetOrSize();

Serialise_DebugMessages(ser);

Expand Down Expand Up @@ -4281,8 +4281,8 @@ bool WrappedOpenGL::Serialise_glClearNamedBufferSubDataEXT(SerialiserType &ser,
{
SERIALISE_ELEMENT_LOCAL(buffer, BufferRes(GetCtx(), bufferHandle)).Important();
SERIALISE_ELEMENT(internalformat);
SERIALISE_ELEMENT_LOCAL(offset, (uint64_t)offsetPtr);
SERIALISE_ELEMENT_LOCAL(size, (uint64_t)sizePtr);
SERIALISE_ELEMENT_LOCAL(offset, (uint64_t)offsetPtr).OffsetOrSize();
SERIALISE_ELEMENT_LOCAL(size, (uint64_t)sizePtr).OffsetOrSize();
SERIALISE_ELEMENT(format).Important();
SERIALISE_ELEMENT(type).Important();

Expand Down
14 changes: 7 additions & 7 deletions renderdoc/driver/gl/wrappers/gl_interop_funcs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1307,9 +1307,9 @@ bool WrappedOpenGL::Serialise_glNamedBufferStorageMemEXT(SerialiserType &ser, GL
GLuint64 offset)
{
SERIALISE_ELEMENT_LOCAL(buffer, BufferRes(GetCtx(), bufferHandle));
SERIALISE_ELEMENT_LOCAL(size, (uint64_t)sizeptr);
SERIALISE_ELEMENT_LOCAL(size, (uint64_t)sizeptr).OffsetOrSize();
SERIALISE_ELEMENT_LOCAL(memory, ExtMemRes(GetCtx(), memoryHandle));
SERIALISE_ELEMENT(offset);
SERIALISE_ELEMENT(offset).OffsetOrSize();

SERIALISE_CHECK_READ_ERRORS();

Expand Down Expand Up @@ -1423,7 +1423,7 @@ bool WrappedOpenGL::Serialise_glTextureStorageMem1DEXT(SerialiserType &ser, GLui
SERIALISE_ELEMENT(internalFormat);
SERIALISE_ELEMENT(width);
SERIALISE_ELEMENT_LOCAL(memory, ExtMemRes(GetCtx(), memoryHandle));
SERIALISE_ELEMENT(offset);
SERIALISE_ELEMENT(offset).OffsetOrSize();

SERIALISE_CHECK_READ_ERRORS();

Expand Down Expand Up @@ -1532,7 +1532,7 @@ bool WrappedOpenGL::Serialise_glTextureStorageMem2DEXT(SerialiserType &ser, GLui
SERIALISE_ELEMENT(width);
SERIALISE_ELEMENT(height);
SERIALISE_ELEMENT_LOCAL(memory, ExtMemRes(GetCtx(), memoryHandle));
SERIALISE_ELEMENT(offset);
SERIALISE_ELEMENT(offset).OffsetOrSize();

SERIALISE_CHECK_READ_ERRORS();

Expand Down Expand Up @@ -1646,7 +1646,7 @@ bool WrappedOpenGL::Serialise_glTextureStorageMem2DMultisampleEXT(
SERIALISE_ELEMENT(height);
SERIALISE_ELEMENT_TYPED(bool, fixedSampleLocations);
SERIALISE_ELEMENT_LOCAL(memory, ExtMemRes(GetCtx(), memoryHandle));
SERIALISE_ELEMENT(offset);
SERIALISE_ELEMENT(offset).OffsetOrSize();

SERIALISE_CHECK_READ_ERRORS();

Expand Down Expand Up @@ -1771,7 +1771,7 @@ bool WrappedOpenGL::Serialise_glTextureStorageMem3DEXT(SerialiserType &ser, GLui
SERIALISE_ELEMENT(height);
SERIALISE_ELEMENT(depth);
SERIALISE_ELEMENT_LOCAL(memory, ExtMemRes(GetCtx(), memoryHandle));
SERIALISE_ELEMENT(offset);
SERIALISE_ELEMENT(offset).OffsetOrSize();

SERIALISE_CHECK_READ_ERRORS();

Expand Down Expand Up @@ -1885,7 +1885,7 @@ bool WrappedOpenGL::Serialise_glTextureStorageMem3DMultisampleEXT(
SERIALISE_ELEMENT(depth);
SERIALISE_ELEMENT_TYPED(bool, fixedSampleLocations);
SERIALISE_ELEMENT_LOCAL(memory, ExtMemRes(GetCtx(), memoryHandle));
SERIALISE_ELEMENT(offset);
SERIALISE_ELEMENT(offset).OffsetOrSize();

SERIALISE_CHECK_READ_ERRORS();

Expand Down
8 changes: 4 additions & 4 deletions renderdoc/driver/gl/wrappers/gl_query_funcs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ bool WrappedOpenGL::Serialise_glGetQueryBufferObjectui64v(SerialiserType &ser, G
SERIALISE_ELEMENT_LOCAL(readQuery, QueryRes(GetCtx(), id)).Important();
SERIALISE_ELEMENT_LOCAL(writeBuffer, BufferRes(GetCtx(), buffer)).Important();
SERIALISE_ELEMENT(pname);
SERIALISE_ELEMENT_LOCAL(offset, (uint64_t)offset_);
SERIALISE_ELEMENT_LOCAL(offset, (uint64_t)offset_).OffsetOrSize();

SERIALISE_CHECK_READ_ERRORS();

Expand Down Expand Up @@ -665,7 +665,7 @@ bool WrappedOpenGL::Serialise_glGetQueryBufferObjectuiv(SerialiserType &ser, GLu
SERIALISE_ELEMENT_LOCAL(readQuery, QueryRes(GetCtx(), id)).Important();
SERIALISE_ELEMENT_LOCAL(writeBuffer, BufferRes(GetCtx(), buffer)).Important();
SERIALISE_ELEMENT(pname);
SERIALISE_ELEMENT_LOCAL(offset, (uint64_t)offset_);
SERIALISE_ELEMENT_LOCAL(offset, (uint64_t)offset_).OffsetOrSize();

SERIALISE_CHECK_READ_ERRORS();

Expand Down Expand Up @@ -748,7 +748,7 @@ bool WrappedOpenGL::Serialise_glGetQueryBufferObjecti64v(SerialiserType &ser, GL
SERIALISE_ELEMENT_LOCAL(readQuery, QueryRes(GetCtx(), id)).Important();
SERIALISE_ELEMENT_LOCAL(writeBuffer, BufferRes(GetCtx(), buffer)).Important();
SERIALISE_ELEMENT(pname);
SERIALISE_ELEMENT_LOCAL(offset, (uint64_t)offset_);
SERIALISE_ELEMENT_LOCAL(offset, (uint64_t)offset_).OffsetOrSize();

SERIALISE_CHECK_READ_ERRORS();

Expand Down Expand Up @@ -830,7 +830,7 @@ bool WrappedOpenGL::Serialise_glGetQueryBufferObjectiv(SerialiserType &ser, GLui
SERIALISE_ELEMENT_LOCAL(readQuery, QueryRes(GetCtx(), id)).Important();
SERIALISE_ELEMENT_LOCAL(writeBuffer, BufferRes(GetCtx(), buffer)).Important();
SERIALISE_ELEMENT(pname);
SERIALISE_ELEMENT_LOCAL(offset, (uint64_t)offset_);
SERIALISE_ELEMENT_LOCAL(offset, (uint64_t)offset_).OffsetOrSize();

SERIALISE_CHECK_READ_ERRORS();

Expand Down
Loading

0 comments on commit 287ba6c

Please sign in to comment.