CreateCpuBuffer writes a data pointer
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
parent
fdb29ade82
commit
c44a095bca
|
@ -685,10 +685,12 @@ REFRESHAPI Refresh_GpuBuffer* Refresh_CreateGpuBuffer(
|
|||
/* Creates a CpuBuffer.
|
||||
*
|
||||
* 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(
|
||||
Refresh_Device *device,
|
||||
uint32_t sizeInBytes
|
||||
uint32_t sizeInBytes,
|
||||
void **pDataPtr
|
||||
);
|
||||
|
||||
/* Disposal */
|
||||
|
|
|
@ -310,12 +310,14 @@ Refresh_GpuBuffer* Refresh_CreateGpuBuffer(
|
|||
|
||||
Refresh_CpuBuffer* Refresh_CreateCpuBuffer(
|
||||
Refresh_Device *device,
|
||||
uint32_t sizeInBytes
|
||||
uint32_t sizeInBytes,
|
||||
void **pDataPtr
|
||||
) {
|
||||
NULL_RETURN_NULL(device);
|
||||
return device->CreateCpuBuffer(
|
||||
device->driverData,
|
||||
sizeInBytes
|
||||
sizeInBytes,
|
||||
pDataPtr
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -216,7 +216,8 @@ struct Refresh_Device
|
|||
|
||||
Refresh_CpuBuffer* (*CreateCpuBuffer)(
|
||||
Refresh_Renderer *driverData,
|
||||
uint32_t sizeInBytes
|
||||
uint32_t sizeInBytes,
|
||||
void **pDataPtr
|
||||
);
|
||||
|
||||
/* Disposal */
|
||||
|
@ -605,8 +606,6 @@ struct Refresh_Device
|
|||
ASSIGN_DRIVER_FUNC(PushComputeShaderUniforms, name) \
|
||||
ASSIGN_DRIVER_FUNC(DispatchCompute, name) \
|
||||
ASSIGN_DRIVER_FUNC(EndComputePass, name) \
|
||||
ASSIGN_DRIVER_FUNC(MapCpuBuffer, name) \
|
||||
ASSIGN_DRIVER_FUNC(UnmapCpuBuffer, name) \
|
||||
ASSIGN_DRIVER_FUNC(BeginCopyPass, name) \
|
||||
ASSIGN_DRIVER_FUNC(UploadToTexture, name) \
|
||||
ASSIGN_DRIVER_FUNC(UploadToBuffer, name) \
|
||||
|
|
Loading…
Reference in New Issue