diff options
author | Chuyan Zhang <chuyan@ucsb.edu> | 2024-10-03 19:49:47 -0700 |
---|---|---|
committer | Chuyan Zhang <chuyan@ucsb.edu> | 2024-10-03 19:49:47 -0700 |
commit | e59529d3f55b9128f798a7f02a7288f96bdaf9a4 (patch) | |
tree | abdbb571e1dfa46ea85921135434bdfc6a6d11b9 /src/vulkan_helper.h | |
parent | 4bb8fd5ac5c07e8756ae097e7f5d7f34697bc914 (diff) | |
download | iris-e59529d3f55b9128f798a7f02a7288f96bdaf9a4.tar.gz iris-e59529d3f55b9128f798a7f02a7288f96bdaf9a4.zip |
use xmake build & scene load wip
Diffstat (limited to 'src/vulkan_helper.h')
-rw-r--r-- | src/vulkan_helper.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/vulkan_helper.h b/src/vulkan_helper.h index 6dbf0b7..04fcead 100644 --- a/src/vulkan_helper.h +++ b/src/vulkan_helper.h @@ -1,3 +1,5 @@ +#pragma once + #include <memory> #include <vulkan/vulkan_core.h> #include <vulkan/vk_enum_string_helper.h> @@ -63,10 +65,10 @@ struct CommandBuffer { VkQueue queue; CommandBuffer(VkDevice device, uint32_t queue_family_index, VkQueue queue); - void destroy(); + void release(); void begin(VkCommandBufferUsageFlags flags = VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT); void submit_sync(); - ~CommandBuffer() { destroy(); } + ~CommandBuffer() { release(); } }; struct Device { |