enable non reusable command buffers

This commit is contained in:
Greg Wells
2025-07-05 19:16:59 -04:00
parent c3ea545c99
commit 1614885de3

View File

@@ -10,6 +10,8 @@ gnReturnCode createCommandPool(gnCommandPool commandPool, gnDevice device, gnCom
.queueFamilyIndex = info.queueIndex,
};
if ((info.flags & GN_REUSE_COMMAND_BUFFERS) != GN_REUSE_COMMAND_BUFFERS) poolInfo.flags |= VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT;
if (vkCreateCommandPool(device->outputDevice->device, &poolInfo, NULL, &commandPool->commandPool->commandPool) != VK_SUCCESS) {
return GN_FAILED_TO_CREATE_COMMAND_POOL;
}