aboutsummaryrefslogtreecommitdiffstats
path: root/api-test/vk-command-buffer.cpp
diff options
context:
space:
mode:
authorladevieq <ladevie.quentin@gmail.com>2023-01-12 00:47:59 +0100
committerladevieq <ladevie.quentin@gmail.com>2023-01-12 00:47:59 +0100
commit5e3bb454d50091e581d5d1d03af34e38277694b3 (patch)
tree06eada2111afb56a24d0ced89685587400041c8d /api-test/vk-command-buffer.cpp
parentb47e177898657e435cb5bc913a4a783fddbe1f3d (diff)
WIP new rendering api
Diffstat (limited to 'api-test/vk-command-buffer.cpp')
-rw-r--r--api-test/vk-command-buffer.cpp25
1 files changed, 0 insertions, 25 deletions
diff --git a/api-test/vk-command-buffer.cpp b/api-test/vk-command-buffer.cpp
deleted file mode 100644
index b9eed19..0000000
--- a/api-test/vk-command-buffer.cpp
+++ /dev/null
@@ -1,25 +0,0 @@
-#include "vk-command-buffer.hpp"
-
-#include <cassert>
-
-#include "vulkan-loader.hpp"
-
-#ifdef _DEBUG
-#define VKCHECK(result) assert(result == VK_SUCCESS);
-#else
-#define VKCHECK(result) result;
-#endif
-
-void command_buffer::start() {
- VkCommandBufferBeginInfo begin_info = {};
- begin_info.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO;
- begin_info.pNext = nullptr;
- begin_info.flags = 0U;
- begin_info.pInheritanceInfo = nullptr;
-
- VKCHECK(vkBeginCommandBuffer(handle, &begin_info))
-}
-
-void command_buffer::stop() {
- VKCHECK(vkEndCommandBuffer(handle))
-}