From c779718967ee3311d2d66ff356de63b9e6f5cd50 Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Thu, 15 Feb 2024 20:05:18 -0800 Subject: [PATCH] buffer bindings should actually use uint64_t --- include/Refresh.h | 6 +++--- src/Refresh_Driver.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/Refresh.h b/include/Refresh.h index 8594c1d..370ae26 100644 --- a/include/Refresh.h +++ b/include/Refresh.h @@ -816,7 +816,7 @@ REFRESHAPI void Refresh_BindVertexBuffers( uint32_t firstBinding, uint32_t bindingCount, Refresh_GpuBuffer **pBuffers, - uint32_t *pOffsets + uint64_t *pOffsets ); /* Binds an index buffer for use with subsequent draw calls. */ @@ -824,7 +824,7 @@ REFRESHAPI void Refresh_BindIndexBuffer( Refresh_Device *device, Refresh_CommandBuffer *commandBuffer, Refresh_GpuBuffer *buffer, - uint32_t offset, + uint64_t offset, Refresh_IndexElementSize indexElementSize ); @@ -1159,7 +1159,7 @@ REFRESHAPI void Refresh_CopyTextureToBuffer( Refresh_CommandBuffer *commandBuffer, Refresh_TextureSlice *textureSlice, Refresh_GpuBuffer *buffer, - Refresh_BufferImageCopy *copyParameters + Refresh_BufferImageCopy *copyParams ); /* Copies data from a buffer to a texture slice. */ diff --git a/src/Refresh_Driver.h b/src/Refresh_Driver.h index 949c191..b2e3ab8 100644 --- a/src/Refresh_Driver.h +++ b/src/Refresh_Driver.h @@ -290,14 +290,14 @@ struct Refresh_Device uint32_t firstBinding, uint32_t bindingCount, Refresh_GpuBuffer **pBuffers, - uint32_t *pOffsets + uint64_t *pOffsets ); void (*BindIndexBuffer)( Refresh_Renderer *driverData, Refresh_CommandBuffer *commandBuffer, Refresh_GpuBuffer *buffer, - uint32_t offset, + uint64_t offset, Refresh_IndexElementSize indexElementSize ); @@ -487,7 +487,7 @@ struct Refresh_Device Refresh_CommandBuffer *commandBuffer, Refresh_TextureSlice *textureSlice, Refresh_GpuBuffer *buffer, - Refresh_BufferImageCopy *copyParameters + Refresh_BufferImageCopy *copyParams ); void (*CopyBufferToTexture)(