KRDevice now allocates a global descriptor pool per each device.

This commit is contained in:
2022-09-20 18:12:18 -07:00
parent a3ee2845d1
commit ee091aa1fe
2 changed files with 45 additions and 0 deletions

View File

@@ -83,6 +83,8 @@ public:
void graphicsUpload(VkCommandBuffer& commandBuffer, KRDataBlock& data, VkBuffer destination);
void graphicsUpload(VkCommandBuffer& commandBuffer, void* data, size_t size, VkBuffer destination);
VkDescriptorPool getDescriptorPool();
VkPhysicalDevice m_device;
VkDevice m_logicalDevice;
VkPhysicalDeviceProperties m_deviceProperties;
@@ -141,4 +143,5 @@ private:
, const char* debug_label
#endif // KRENGINE_DEBUG_GPU_LABELS
);
bool initDescriptorPool();
};