Enable multiDrawIndirect if supported (Refs #277)
This commit is contained in:
parent
904d785c20
commit
153e555447
1 changed files with 4 additions and 6 deletions
|
|
@ -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()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue