summaryrefslogtreecommitdiff
path: root/engine/xe_engine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engine/xe_engine.cpp')
-rw-r--r--engine/xe_engine.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/engine/xe_engine.cpp b/engine/xe_engine.cpp
new file mode 100644
index 0000000..8d2655a
--- /dev/null
+++ b/engine/xe_engine.cpp
@@ -0,0 +1,17 @@
+#include "xe_engine.hpp"
+#include "xe_descriptors.hpp"
+
+namespace xe {
+
+XeEngine::XeEngine(int width, int height, std::string name)
+ : xeWindow{width, height, name}, xeDevice{xeWindow}, xeRenderer{xeWindow, xeDevice} {};
+
+void XeEngine::loadDescriptorPool() {
+ xeDescriptorPool = XeDescriptorPool::Builder(xeDevice)
+ .setMaxSets(XeSwapChain::MAX_FRAMES_IN_FLIGHT)
+ .addPoolSize(VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER, XeSwapChain::MAX_FRAMES_IN_FLIGHT)
+ .addPoolSize(VK_DESCRIPTOR_TYPE_STORAGE_BUFFER, XeSwapChain::MAX_FRAMES_IN_FLIGHT)
+ .build();
+}
+
+} \ No newline at end of file