From af1e7ed9b6ac42e950db0959d0635cc98d43b533 Mon Sep 17 00:00:00 2001 From: exdal Date: Sun, 26 Apr 2026 18:16:39 +0300 Subject: [PATCH] fix Allocator fwd decl --- include/vuk/runtime/CommandBuffer.hpp | 4 +--- src/runtime/vk/CommandBuffer.cpp | 4 ++++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/include/vuk/runtime/CommandBuffer.hpp b/include/vuk/runtime/CommandBuffer.hpp index 1a7347a2..3aa751b2 100644 --- a/include/vuk/runtime/CommandBuffer.hpp +++ b/include/vuk/runtime/CommandBuffer.hpp @@ -358,9 +358,7 @@ namespace vuk { DomainFlagBits get_scheduled_domain() const; /// @brief Gets the allocator associated with this object. - Allocator get_allocator() { - return *allocator; - } + Allocator get_allocator(); // command buffer state setting // when a state is set it is persistent for a pass (similar to Vulkan dynamic state) - see documentation diff --git a/src/runtime/vk/CommandBuffer.cpp b/src/runtime/vk/CommandBuffer.cpp index 21747fc7..a54a778c 100644 --- a/src/runtime/vk/CommandBuffer.cpp +++ b/src/runtime/vk/CommandBuffer.cpp @@ -72,6 +72,10 @@ namespace vuk { return stream->domain; } + Allocator CommandBuffer::get_allocator() { + return *allocator; + } + CommandBuffer& CommandBuffer::set_descriptor_set_strategy(DescriptorSetStrategyFlags ds_strategy_flags) { this->ds_strategy_flags = ds_strategy_flags; return *this;