| 617 | } |
| 618 | |
| 619 | void 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 | |
| 635 | void vkRenderer::createDescriptorSet() { |
| 636 | VkDescriptorSetLayout layouts[] = {descriptorSetLayout}; |
nothing calls this directly
no outgoing calls
no test coverage detected