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);
}
void reBuildCommandBuffers()
virtual void getEnabledFeatures()
{
if (!checkCommandBuffers())
{
destroyCommandBuffers();
createCommandBuffers();
// Enable multi draw indirect if supported
if (deviceFeatures.multiDrawIndirect) {
enabledFeatures.multiDrawIndirect = VK_TRUE;
}
buildCommandBuffers();
}
void buildCommandBuffers()