CreateCpuBuffer writes a data pointer
continuous-integration/drone/push Build is failing Details

abi_break
cosmonaut 2024-02-16 18:53:52 -08:00
parent fdb29ade82
commit c44a095bca
3 changed files with 9 additions and 6 deletions

View File

@ -685,10 +685,12 @@ REFRESHAPI Refresh_GpuBuffer* Refresh_CreateGpuBuffer(
/* Creates a CpuBuffer. /* Creates a CpuBuffer.
* *
* sizeInBytes: The length of the buffer. * sizeInBytes: The length of the buffer.
* pDataPtr: On success, contains a pointer that can be used to copy to/from the buffer.
*/ */
REFRESHAPI Refresh_CpuBuffer* Refresh_CreateCpuBuffer( REFRESHAPI Refresh_CpuBuffer* Refresh_CreateCpuBuffer(
Refresh_Device *device, Refresh_Device *device,
uint32_t sizeInBytes uint32_t sizeInBytes,
void **pDataPtr
); );
/* Disposal */ /* Disposal */

View File

@ -310,12 +310,14 @@ Refresh_GpuBuffer* Refresh_CreateGpuBuffer(
Refresh_CpuBuffer* Refresh_CreateCpuBuffer( Refresh_CpuBuffer* Refresh_CreateCpuBuffer(
Refresh_Device *device, Refresh_Device *device,
uint32_t sizeInBytes uint32_t sizeInBytes,
void **pDataPtr
) { ) {
NULL_RETURN_NULL(device); NULL_RETURN_NULL(device);
return device->CreateCpuBuffer( return device->CreateCpuBuffer(
device->driverData, device->driverData,
sizeInBytes sizeInBytes,
pDataPtr
); );
} }

View File

@ -216,7 +216,8 @@ struct Refresh_Device
Refresh_CpuBuffer* (*CreateCpuBuffer)( Refresh_CpuBuffer* (*CreateCpuBuffer)(
Refresh_Renderer *driverData, Refresh_Renderer *driverData,
uint32_t sizeInBytes uint32_t sizeInBytes,
void **pDataPtr
); );
/* Disposal */ /* Disposal */
@ -605,8 +606,6 @@ struct Refresh_Device
ASSIGN_DRIVER_FUNC(PushComputeShaderUniforms, name) \ ASSIGN_DRIVER_FUNC(PushComputeShaderUniforms, name) \
ASSIGN_DRIVER_FUNC(DispatchCompute, name) \ ASSIGN_DRIVER_FUNC(DispatchCompute, name) \
ASSIGN_DRIVER_FUNC(EndComputePass, name) \ ASSIGN_DRIVER_FUNC(EndComputePass, name) \
ASSIGN_DRIVER_FUNC(MapCpuBuffer, name) \
ASSIGN_DRIVER_FUNC(UnmapCpuBuffer, name) \
ASSIGN_DRIVER_FUNC(BeginCopyPass, name) \ ASSIGN_DRIVER_FUNC(BeginCopyPass, name) \
ASSIGN_DRIVER_FUNC(UploadToTexture, name) \ ASSIGN_DRIVER_FUNC(UploadToTexture, name) \
ASSIGN_DRIVER_FUNC(UploadToBuffer, name) \ ASSIGN_DRIVER_FUNC(UploadToBuffer, name) \