write pDataPtr on CreateCpuBuffer

pull/50/head
cosmonaut 2024-02-16 18:56:25 -08:00
parent 74f26e605d
commit 0c095fa56d
1 changed files with 4 additions and 1 deletions

View File

@ -6818,7 +6818,8 @@ static Refresh_GpuBuffer* VULKAN_CreateGpuBuffer(
static Refresh_CpuBuffer* VULKAN_CreateCpuBuffer( static Refresh_CpuBuffer* VULKAN_CreateCpuBuffer(
Refresh_Renderer *driverData, Refresh_Renderer *driverData,
uint32_t sizeInBytes uint32_t sizeInBytes,
void **pDataPtr
) { ) {
VulkanRenderer *renderer = (VulkanRenderer*) driverData; VulkanRenderer *renderer = (VulkanRenderer*) driverData;
VkBufferUsageFlags vulkanUsageFlags = VkBufferUsageFlags vulkanUsageFlags =
@ -6835,6 +6836,8 @@ static Refresh_CpuBuffer* VULKAN_CreateCpuBuffer(
1 1
); );
*pDataPtr = vulkanBuffer->usedRegion->allocation->mapPointer;
return (Refresh_CpuBuffer*) vulkanBuffer; return (Refresh_CpuBuffer*) vulkanBuffer;
} }