Created helper function for Vulkan Buffer creation, KRDevice::createBuffer.

Updated KRMeshManager to use KRDevice::createBuffer for vertex and index data.
This commit is contained in:
2022-07-09 23:52:35 -07:00
parent 64341c4e90
commit 6e1e07cc07
3 changed files with 33 additions and 17 deletions

View File

@@ -47,6 +47,7 @@ public:
bool initialize(const std::vector<const char*>& deviceExtensions);
VmaAllocator getAllocator();
void createBuffer(VkDeviceSize size, VkBufferUsageFlags usage, VkMemoryPropertyFlags properties, VkBuffer* buffer, VmaAllocation* allocation);
KrResult selectSurfaceFormat(VkSurfaceKHR& surface, VkSurfaceFormatKHR& surfaceFormat);
KrResult selectDepthFormat(VkFormat& selectedDepthFormat);