adding buffer mapping

This commit is contained in:
2024-12-05 01:26:53 +01:00
parent cddd08f92f
commit 6868047c76
10 changed files with 60 additions and 16 deletions

View File

@@ -19,9 +19,11 @@ typedef struct VulkanBuffer
VkBuffer buffer;
VkBufferUsageFlags usage;
VmaAllocation allocation;
VmaAllocationInfo allocation_info;
} VulkanBuffer;
PulseBuffer VulkanCreateBuffer(PulseDevice device, const PulseBufferCreateInfo* create_infos);
bool VulkanGetBufferMap(PulseBuffer buffer, void** data);
void VulkanDestroyBuffer(PulseDevice device, PulseBuffer buffer);
#endif // PULSE_VULKAN_BUFFER_H_