summaryrefslogtreecommitdiff
path: root/hk21/game
diff options
context:
space:
mode:
authorSteven Le Rouzic <steven.lerouzic@gmail.com>2025-03-04 00:06:21 +0100
committerSteven Le Rouzic <steven.lerouzic@gmail.com>2025-03-04 00:07:36 +0100
commite5488ec6f523decee12923f3a48000102b6ed489 (patch)
tree871cdd6ffc37ae220a4d468744bc2ed9e28a771b /hk21/game
parentc6a11711c4dcf3fedc658a895c7f1c6722ef08b6 (diff)
Upgrade asl to 0.1.0
Diffstat (limited to 'hk21/game')
-rw-r--r--hk21/game/gpu.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/hk21/game/gpu.cpp b/hk21/game/gpu.cpp
index 4e0a65a..14b9f96 100644
--- a/hk21/game/gpu.cpp
+++ b/hk21/game/gpu.cpp
@@ -261,8 +261,8 @@ static asl::status_or<VkDevice> create_device(VkPhysicalDevice physical_device,
struct FrameResources : asl::intrusive_list_node<FrameResources>
{
- VkFence complete_fence;
- VkCommandPool command_pool;
+ VkFence complete_fence = VK_NULL_HANDLE;
+ VkCommandPool command_pool = VK_NULL_HANDLE;
};
class GpuImpl : public Gpu
@@ -280,7 +280,7 @@ class GpuImpl : public Gpu
asl::buffer<VkImage> m_swapchain_images;
VkSemaphore m_swapchain_image_acquire_semaphore = VK_NULL_HANDLE;
- VkSemaphore m_queue_complete_semaphore = VK_NULL_HANDLE;
+ VkSemaphore m_queue_complete_semaphore = VK_NULL_HANDLE;
asl::GlobalHeap m_allocator; // @Todo Make this configurable
asl::IntrusiveList<FrameResources> m_in_flight_frames;
@@ -651,7 +651,7 @@ public:
{
while (!m_in_flight_frames.is_empty())
{
- auto* frame = m_in_flight_frames.tail();
+ auto* frame = m_in_flight_frames.back();
auto status = vkGetFenceStatus(m_device, frame->complete_fence);
if (status == VK_NOT_READY)