From 4ab759b44da76a6b207bf893c7c052ffbae74f92 Mon Sep 17 00:00:00 2001 From: Patrick Wuttke Date: Thu, 27 Jun 2024 09:44:09 +0200 Subject: [PATCH] Added some basic command buffer functions. --- include/iwa/command.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/iwa/command.hpp b/include/iwa/command.hpp index 1d18c22..6702b8f 100644 --- a/include/iwa/command.hpp +++ b/include/iwa/command.hpp @@ -35,6 +35,10 @@ class CommandBuffer : public Object, pub public: CommandBuffer(ObjectPtr owner, vk::CommandBuffer handle); ~CommandBuffer() noexcept override; + + void begin(const vk::CommandBufferBeginInfo& beginInfo = {}) const noexcept { getVkHandle().begin(beginInfo); } + void end() const noexcept { getVkHandle().end(); } + void reset() const noexcept { getVkHandle().reset(); } }; } // namespace iwa