diff options
author | tylermurphy534 <tylermurphy534@gmail.com> | 2022-09-29 18:11:53 -0400 |
---|---|---|
committer | tylermurphy534 <tylermurphy534@gmail.com> | 2022-09-29 18:11:53 -0400 |
commit | 915469e0f3467022f7fd3541350b04b8668d20f7 (patch) | |
tree | 19faf29890e88b8f7b21b401d8e1c5ddad9b0259 /engine/xe_engine.cpp | |
parent | temporray descriptor pool memory patch (diff) | |
download | minecraftvulkan-915469e0f3467022f7fd3541350b04b8668d20f7.tar.gz minecraftvulkan-915469e0f3467022f7fd3541350b04b8668d20f7.tar.bz2 minecraftvulkan-915469e0f3467022f7fd3541350b04b8668d20f7.zip |
descriptor pool final fix
Diffstat (limited to 'engine/xe_engine.cpp')
-rw-r--r-- | engine/xe_engine.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/engine/xe_engine.cpp b/engine/xe_engine.cpp index 5af5ef8..4f64bbf 100644 --- a/engine/xe_engine.cpp +++ b/engine/xe_engine.cpp @@ -13,7 +13,6 @@ Engine::Engine(int width, int height, std::string name, const char *icon) : xeWi xeRenderer{xeWindow, xeDevice}, xeCamera{}, xeInput{xeWindow} { - loadDescriptorPool(); alutInit(0, NULL); std::cout << "Audio device: " << alcGetString(NULL, ALC_DEFAULT_DEVICE_SPECIFIER) << "\n"; _instance = this; @@ -25,15 +24,6 @@ Engine::~Engine() { alutExit(); }; -void Engine::loadDescriptorPool() { - xeDescriptorPool = DescriptorPool::Builder(xeDevice) - .setMaxSets(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(); -} - bool Engine::poll() { glfwPollEvents(); auto newTime = std::chrono::high_resolution_clock::now(); |