Enable multiDrawIndirect if supported (Refs #277)

This commit is contained in:
saschawillems 2017-06-06 21:14:21 +02:00
parent 904d785c20
commit 153e555447

View file

@ -150,14 +150,12 @@ public:
vkDestroySemaphore(device, compute.semaphore, nullptr); vkDestroySemaphore(device, compute.semaphore, nullptr);
} }
void reBuildCommandBuffers() virtual void getEnabledFeatures()
{ {
if (!checkCommandBuffers()) // Enable multi draw indirect if supported
{ if (deviceFeatures.multiDrawIndirect) {
destroyCommandBuffers(); enabledFeatures.multiDrawIndirect = VK_TRUE;
createCommandBuffers();
} }
buildCommandBuffers();
} }
void buildCommandBuffers() void buildCommandBuffers()