rearrange copy params order
continuous-integration/drone/push Build is failing Details

abi_break
cosmonaut 2024-02-15 17:27:40 -08:00
parent 80914e9c38
commit 218587bb6a
3 changed files with 18 additions and 16 deletions

View File

@ -1064,6 +1064,8 @@ REFRESHAPI void Refresh_EndComputePass(
/* CpuBuffer Map */
/* Maps a CpuBuffer to host memory. Returns a pointer that can be copied to.
*
* NOTE: Mapping a CpuBuffer that is already mapped is an error.
*
* offsetInBytes: The offset of the buffer to map.
* sizeInBytes: The number of bytes of memory to map.
@ -1102,8 +1104,8 @@ REFRESHAPI void Refresh_UploadToTexture(
Refresh_Device *device,
Refresh_CommandBuffer *commandBuffer,
Refresh_CpuBuffer *cpuBuffer,
Refresh_BufferImageCopy *copyParams,
Refresh_TextureSlice *textureSlice
Refresh_TextureSlice *textureSlice,
Refresh_BufferImageCopy *copyParams
);
/* Uploads data from a CpuBuffer to a GpuBuffer. */
@ -1165,8 +1167,8 @@ REFRESHAPI void Refresh_CopyBufferToTexture(
Refresh_Device *device,
Refresh_CommandBuffer *commandBuffer,
Refresh_GpuBuffer *buffer,
Refresh_BufferImageCopy *copyParams,
Refresh_TextureSlice *textureSlice
Refresh_TextureSlice *textureSlice,
Refresh_BufferImageCopy *copyParams
);
/* Copies data from a buffer to a buffer. */

View File

@ -793,16 +793,16 @@ void Refresh_UploadToTexture(
Refresh_Device *device,
Refresh_CommandBuffer *commandBuffer,
Refresh_CpuBuffer *cpuBuffer,
Refresh_BufferImageCopy *copyParams,
Refresh_TextureSlice *textureSlice
Refresh_TextureSlice *textureSlice,
Refresh_BufferImageCopy *copyParams
) {
NULL_RETURN(device);
device->UploadToTexture(
device->driverData,
commandBuffer,
cpuBuffer,
copyParams,
textureSlice
textureSlice,
copyParams
);
}
@ -893,16 +893,16 @@ void Refresh_CopyBufferToTexture(
Refresh_Device *device,
Refresh_CommandBuffer *commandBuffer,
Refresh_GpuBuffer *buffer,
Refresh_BufferImageCopy *copyParams,
Refresh_TextureSlice *textureSlice
Refresh_TextureSlice *textureSlice,
Refresh_BufferImageCopy *copyParams
) {
NULL_RETURN(device);
device->CopyBufferToTexture(
device->driverData,
commandBuffer,
buffer,
copyParams,
textureSlice
textureSlice,
copyParams
);
}

View File

@ -447,8 +447,8 @@ struct Refresh_Device
Refresh_Renderer *driverData,
Refresh_CommandBuffer *commandBuffer,
Refresh_CpuBuffer *cpuBuffer,
Refresh_BufferImageCopy *copyParams,
Refresh_TextureSlice *textureSlice
Refresh_TextureSlice *textureSlice,
Refresh_BufferImageCopy *copyParams
);
void (*UploadToBuffer)(
@ -494,8 +494,8 @@ struct Refresh_Device
Refresh_Renderer *driverData,
Refresh_CommandBuffer *commandBuffer,
Refresh_GpuBuffer *buffer,
Refresh_BufferImageCopy *copyParams,
Refresh_TextureSlice *textureSlice
Refresh_TextureSlice *textureSlice,
Refresh_BufferImageCopy *copyParams
);
void (*CopyBufferToBuffer)(