write pDataPtr on CreateCpuBuffer
parent
74f26e605d
commit
0c095fa56d
|
@ -6818,7 +6818,8 @@ static Refresh_GpuBuffer* VULKAN_CreateGpuBuffer(
|
|||
|
||||
static Refresh_CpuBuffer* VULKAN_CreateCpuBuffer(
|
||||
Refresh_Renderer *driverData,
|
||||
uint32_t sizeInBytes
|
||||
uint32_t sizeInBytes,
|
||||
void **pDataPtr
|
||||
) {
|
||||
VulkanRenderer *renderer = (VulkanRenderer*) driverData;
|
||||
VkBufferUsageFlags vulkanUsageFlags =
|
||||
|
@ -6835,6 +6836,8 @@ static Refresh_CpuBuffer* VULKAN_CreateCpuBuffer(
|
|||
1
|
||||
);
|
||||
|
||||
*pDataPtr = vulkanBuffer->usedRegion->allocation->mapPointer;
|
||||
|
||||
return (Refresh_CpuBuffer*) vulkanBuffer;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue