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);
|
||||
}
|
||||
|
||||
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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue