summaryrefslogtreecommitdiff
path: root/engine/xe_engine.cpp
diff options
context:
space:
mode:
authorTyler Murphy <tylermurphy534@gmail.com>2022-09-29 15:20:36 -0400
committerTyler Murphy <tylermurphy534@gmail.com>2022-09-29 15:20:36 -0400
commit6afc6389026ca6b510f11ff9a20b6cfed6af4cf0 (patch)
tree943bbf8d0a00e5fa9682effd1aa64af146faef83 /engine/xe_engine.cpp
parentundo last commit (diff)
downloadminecraftvulkan-6afc6389026ca6b510f11ff9a20b6cfed6af4cf0.tar.gz
minecraftvulkan-6afc6389026ca6b510f11ff9a20b6cfed6af4cf0.tar.bz2
minecraftvulkan-6afc6389026ca6b510f11ff9a20b6cfed6af4cf0.zip
temporray descriptor pool memory patch
Diffstat (limited to '')
-rw-r--r--engine/xe_engine.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engine/xe_engine.cpp b/engine/xe_engine.cpp
index 70dda64..5af5ef8 100644
--- a/engine/xe_engine.cpp
+++ b/engine/xe_engine.cpp
@@ -28,9 +28,9 @@ Engine::~Engine() {
void Engine::loadDescriptorPool() {
xeDescriptorPool = DescriptorPool::Builder(xeDevice)
.setMaxSets(SwapChain::MAX_FRAMES_IN_FLIGHT)
- .addPoolSize(VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER, SwapChain::MAX_FRAMES_IN_FLIGHT)
- .addPoolSize(VK_DESCRIPTOR_TYPE_STORAGE_BUFFER, SwapChain::MAX_FRAMES_IN_FLIGHT)
- .addPoolSize(VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, SwapChain::MAX_FRAMES_IN_FLIGHT)
+ .addPoolSize(VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER, SwapChain::MAX_FRAMES_IN_FLIGHT * 4)
+ .addPoolSize(VK_DESCRIPTOR_TYPE_STORAGE_BUFFER, SwapChain::MAX_FRAMES_IN_FLIGHT * 4)
+ .addPoolSize(VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, SwapChain::MAX_FRAMES_IN_FLIGHT * 4)
.build();
}