From 153e555447fe1f5464e237c30bd4d1930a6c55b7 Mon Sep 17 00:00:00 2001 From: saschawillems Date: Tue, 6 Jun 2017 21:14:21 +0200 Subject: [PATCH] Enable multiDrawIndirect if supported (Refs #277) --- computecullandlod/computecullandlod.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/computecullandlod/computecullandlod.cpp b/computecullandlod/computecullandlod.cpp index 387cbe39..92e3f12e 100644 --- a/computecullandlod/computecullandlod.cpp +++ b/computecullandlod/computecullandlod.cpp @@ -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()