MCPcopy Create free account
hub / github.com/OpenNFS/OpenNFS / createDescriptorPool

Method createDescriptorPool

src/Renderer/vkRenderer.cpp:619–633  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

617}
618
619void vkRenderer::createDescriptorPool() {
620 VkDescriptorPoolSize poolSize = {};
621 poolSize.type = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER;
622 poolSize.descriptorCount = 1;
623
624 VkDescriptorPoolCreateInfo poolInfo = {};
625 poolInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_CREATE_INFO;
626 poolInfo.poolSizeCount = 1;
627 poolInfo.pPoolSizes = &poolSize;
628 poolInfo.maxSets = 1;
629
630 if (vkCreateDescriptorPool(device, &poolInfo, nullptr, &descriptorPool) != VK_SUCCESS) {
631 throw std::runtime_error("failed to create descriptor pool!");
632 }
633}
634
635void vkRenderer::createDescriptorSet() {
636 VkDescriptorSetLayout layouts[] = {descriptorSetLayout};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected