vk_resource_pool: Increase buffer descriptors

This commit is contained in:
GPUCode
2023-03-08 15:19:21 +02:00
parent eeb1ff7965
commit b3e0078041
2 changed files with 2 additions and 5 deletions

View File

@ -129,8 +129,8 @@ void DescriptorPool::Allocate(std::size_t begin, std::size_t end) {
// Choose a sane pool size good for most games
static constexpr std::array<vk::DescriptorPoolSize, 5> pool_sizes = {{
{vk::DescriptorType::eUniformBufferDynamic, 8},
{vk::DescriptorType::eUniformTexelBuffer, 8},
{vk::DescriptorType::eUniformBufferDynamic, 32},
{vk::DescriptorType::eUniformTexelBuffer, 32},
{vk::DescriptorType::eCombinedImageSampler, 8192},
{vk::DescriptorType::eSampledImage, 1024},
{vk::DescriptorType::eStorageImage, 1024},

View File

@ -153,9 +153,6 @@ void TextureRuntime::Clear() {
scheduler.Finish();
VmaAllocator allocator = instance.GetAllocator();
vk::Device device = instance.GetDevice();
device.waitIdle();
renderpass_cache.ClearFramebuffers();
for (const auto& [key, alloc] : texture_recycler) {
vmaDestroyImage(allocator, alloc.image, alloc.allocation);