mirror of
https://github.com/redstrate/Novus.git
synced 2025-04-25 05:17:44 +00:00
Increase descriptor count limits
This commit is contained in:
parent
d882d85eef
commit
635cf15f2c
1 changed files with 3 additions and 3 deletions
|
@ -843,11 +843,11 @@ VkShaderModule Renderer::loadShaderFromDisk(const std::string_view path) {
|
||||||
void Renderer::initDescriptors() {
|
void Renderer::initDescriptors() {
|
||||||
VkDescriptorPoolSize poolSize = {};
|
VkDescriptorPoolSize poolSize = {};
|
||||||
poolSize.type = VK_DESCRIPTOR_TYPE_STORAGE_BUFFER;
|
poolSize.type = VK_DESCRIPTOR_TYPE_STORAGE_BUFFER;
|
||||||
poolSize.descriptorCount = 50;
|
poolSize.descriptorCount = 150;
|
||||||
|
|
||||||
VkDescriptorPoolSize poolSize2 = {};
|
VkDescriptorPoolSize poolSize2 = {};
|
||||||
poolSize2.type = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER;
|
poolSize2.type = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER;
|
||||||
poolSize2.descriptorCount = 50;
|
poolSize2.descriptorCount = 150;
|
||||||
|
|
||||||
const std::array poolSizes = {poolSize, poolSize2};
|
const std::array poolSizes = {poolSize, poolSize2};
|
||||||
|
|
||||||
|
@ -855,7 +855,7 @@ void Renderer::initDescriptors() {
|
||||||
poolCreateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_CREATE_INFO;
|
poolCreateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_CREATE_INFO;
|
||||||
poolCreateInfo.poolSizeCount = poolSizes.size();
|
poolCreateInfo.poolSizeCount = poolSizes.size();
|
||||||
poolCreateInfo.pPoolSizes = poolSizes.data();
|
poolCreateInfo.pPoolSizes = poolSizes.data();
|
||||||
poolCreateInfo.maxSets = 50;
|
poolCreateInfo.maxSets = 150;
|
||||||
|
|
||||||
vkCreateDescriptorPool(device, &poolCreateInfo, nullptr, &descriptorPool);
|
vkCreateDescriptorPool(device, &poolCreateInfo, nullptr, &descriptorPool);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue