aboutsummaryrefslogtreecommitdiffstats
path: root/api-test/vk-device.cpp
diff options
context:
space:
mode:
authorQuentin LADEVIE <qladevie@wanadev.fr>2025-01-26 22:27:10 +0100
committerQuentin LADEVIE <qladevie@wanadev.fr>2025-01-26 22:27:10 +0100
commitc29105b461135f3909cca0308fb05715cee45763 (patch)
tree49c6c41bb88377f6af73ebdf39821038b88b05cf /api-test/vk-device.cpp
parent3490db941ea16e67da72f60ebda75ec0f8bb8051 (diff)
DX12 command buffers and resourcesapi-proto
Diffstat (limited to 'api-test/vk-device.cpp')
-rw-r--r--api-test/vk-device.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/api-test/vk-device.cpp b/api-test/vk-device.cpp
index 024b570..a3c5119 100644
--- a/api-test/vk-device.cpp
+++ b/api-test/vk-device.cpp
@@ -8,6 +8,7 @@
#include "vk-utils.hpp"
#include "vulkan-loader.hpp"
+#include "vk-command-buffer.hpp"
vkdevice vkdevice::render_device = vkdevice();
@@ -44,7 +45,7 @@ void vkdevice::init() {
timeline_semaphore = get_semaphore(semaphore);
}
-vkdevice::~vkdevice() {
+void vkdevice::deinit() {
vkDeviceWaitIdle(device);
bindless_model::destroy_bindless_model(bindless);
@@ -66,6 +67,7 @@ vkdevice::~vkdevice() {
vkDestroyInstance(instance, nullptr);
}
+
void vkdevice::wait() { vkDeviceWaitIdle(device); };
handle<device_texture> vkdevice::create_texture(const texture_desc& desc) {