summaryrefslogtreecommitdiff
path: root/src/vulkan_swapchain.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/vulkan_swapchain.h')
-rw-r--r--src/vulkan_swapchain.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/vulkan_swapchain.h b/src/vulkan_swapchain.h
index 257840a..8d4604e 100644
--- a/src/vulkan_swapchain.h
+++ b/src/vulkan_swapchain.h
@@ -1,3 +1,4 @@
+#pragma once
#include "imgui_impl_glfw.h"
#include "vulkan_helper.h"
#include "vulkan/vulkan_core.h"
@@ -28,7 +29,7 @@ struct Swapchain {
VkFramebuffer framebuffers[SWAPCHAIN_IMAGE_COUNT];
VkSemaphore image_available_semaphores[SWAPCHAIN_IMAGE_COUNT];
VkSemaphore render_finished_semaphores[SWAPCHAIN_IMAGE_COUNT];
- AsyncCommandBuffer cmd_buf;
+ CommandBuffer cmd_buf;
Texture2D upload_texture;
@@ -39,8 +40,8 @@ struct Swapchain {
void resize(uint32_t new_width, uint32_t new_height);
void start_frame();
void display(Texture2D &texture);
+ void release();
Swapchain(GLFWwindow *window, iris::Device device, uint32_t width, uint32_t height);
- ~Swapchain();
};
} // namespace iris \ No newline at end of file