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.cpp | |
parent | 4bb8fd5ac5c07e8756ae097e7f5d7f34697bc914 (diff) | |
download | iris-e59529d3f55b9128f798a7f02a7288f96bdaf9a4.tar.gz iris-e59529d3f55b9128f798a7f02a7288f96bdaf9a4.zip |
use xmake build & scene load wip
Diffstat (limited to 'src/vulkan_helper.cpp')
-rw-r--r-- | src/vulkan_helper.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/vulkan_helper.cpp b/src/vulkan_helper.cpp index 567d414..c281b2c 100644 --- a/src/vulkan_helper.cpp +++ b/src/vulkan_helper.cpp @@ -2,7 +2,6 @@ #include "vulkan/vulkan_core.h" #include <limits> #include <spdlog/spdlog.h> -#define STB_IMAGE_IMPLEMENTATION #include "stb_image.h" #include <cstdint> #include <cstring> @@ -281,7 +280,7 @@ CommandBuffer::CommandBuffer(VkDevice device, spdlog::debug("Created fence: 0x{:x}", (uint64_t)fence); } -void CommandBuffer::destroy() { +void CommandBuffer::release() { if (fence != VK_NULL_HANDLE) { vkDestroyFence(device, fence, VK_NULL_HANDLE); vkFreeCommandBuffers(device, pool, 1, &buffer); |