Browse Source

vulkan: fix descriptor pool sizes with arrays of samplers.

Sasha Szpakowski 1 year ago
parent
commit
ee91a87873
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/modules/graphics/vulkan/Shader.cpp

+ 1 - 1
src/modules/graphics/vulkan/Shader.cpp

@@ -1073,7 +1073,7 @@ void Shader::createDescriptorPoolSizes()
 			continue;
 
 		size.type = type;
-		size.descriptorCount = 1;
+		size.descriptorCount = entry.second->count;
 		descriptorPoolSizes.push_back(size);
 	}
 }