Set up our command pool
| 1258 | |
| 1259 | // Set up our command pool |
| 1260 | void setupCommandPool() |
| 1261 | { |
| 1262 | // We want to be able to reset command buffers after submitting them |
| 1263 | VkCommandPoolCreateInfo commandPoolCreateInfo = VkCommandPoolCreateInfo(); |
| 1264 | commandPoolCreateInfo.sType = VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO; |
| 1265 | commandPoolCreateInfo.queueFamilyIndex = *queueFamilyIndex; |
| 1266 | commandPoolCreateInfo.flags = VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT; |
| 1267 | |
| 1268 | // Create our command pool |
| 1269 | if (vkCreateCommandPool(device, &commandPoolCreateInfo, nullptr, &commandPool) != VK_SUCCESS) |
| 1270 | { |
| 1271 | vulkanAvailable = false; |
| 1272 | return; |
| 1273 | } |
| 1274 | } |
| 1275 | |
| 1276 | // Helper to create a generic buffer with the specified size, usage and memory flags |
| 1277 | bool createBuffer(VkDeviceSize size, |
nothing calls this directly
no test coverage detected