MCPcopy Create free account
hub / github.com/android/ndk-samples / createCommandPool

Method createCommandPool

hello-vulkan/app/src/main/cpp/hellovk.h:1265–1272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1263}
1264
1265void HelloVK::createCommandPool() {
1266 QueueFamilyIndices queueFamilyIndices = findQueueFamilies(physicalDevice);
1267 VkCommandPoolCreateInfo poolInfo{};
1268 poolInfo.sType = VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO;
1269 poolInfo.flags = VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT;
1270 poolInfo.queueFamilyIndex = queueFamilyIndices.graphicsFamily.value();
1271 VK_CHECK(vkCreateCommandPool(device, &poolInfo, nullptr, &commandPool));
1272}
1273
1274void HelloVK::createCommandBuffer() {
1275 commandBuffers.resize(MAX_FRAMES_IN_FLIGHT);

Callers

nothing calls this directly

Calls 1

valueMethod · 0.45

Tested by

no test coverage detected