remove map/unmap calls
continuous-integration/drone/push Build is failing Details

abi_break
cosmonaut 2024-02-16 18:44:16 -08:00
parent 61386a27ba
commit fdb29ade82
3 changed files with 0 additions and 64 deletions

View File

@ -1043,28 +1043,6 @@ REFRESHAPI void Refresh_EndComputePass(
Refresh_CommandBuffer *commandBuffer Refresh_CommandBuffer *commandBuffer
); );
/* 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.
*/
REFRESHAPI void* Refresh_MapCpuBuffer(
Refresh_Device *device,
Refresh_CpuBuffer *buffer,
uint32_t offsetInBytes,
uint32_t sizeInBytes
);
/* Unmaps a mapped CpuBuffer. Call this when you are done copying data. */
REFRESHAPI void Refresh_UnmapCpuBuffer(
Refresh_Device *device,
Refresh_CpuBuffer *buffer
);
/* Copy Pass */ /* Copy Pass */
/* Begins a copy pass. */ /* Begins a copy pass. */

View File

@ -730,34 +730,6 @@ void Refresh_EndComputePass(
); );
} }
/* CpuBuffer Map */
void* Refresh_MapCpuBuffer(
Refresh_Device *device,
Refresh_CpuBuffer *buffer,
uint32_t offsetInBytes,
uint32_t sizeInBytes
) {
NULL_RETURN_NULL(device);
return device->MapCpuBuffer(
device->driverData,
buffer,
offsetInBytes,
sizeInBytes
);
}
void Refresh_UnmapCpuBuffer(
Refresh_Device *device,
Refresh_CpuBuffer *buffer
) {
NULL_RETURN(device);
device->UnmapCpuBuffer(
device->driverData,
buffer
);
}
/* Copy Pass */ /* Copy Pass */
void Refresh_BeginCopyPass( void Refresh_BeginCopyPass(

View File

@ -413,20 +413,6 @@ struct Refresh_Device
Refresh_CommandBuffer *commandBuffer Refresh_CommandBuffer *commandBuffer
); );
/* CpuBuffer map/unmap */
void* (*MapCpuBuffer)(
Refresh_Renderer *driverData,
Refresh_CpuBuffer *buffer,
uint32_t offsetInBytes,
uint32_t sizeInBytes
);
void (*UnmapCpuBuffer)(
Refresh_Renderer *driverData,
Refresh_CpuBuffer *buffer
);
/* Copy Pass */ /* Copy Pass */
void (*BeginCopyPass)( void (*BeginCopyPass)(