From 71befd8eaf7244badb0188b751066afacb8d8ee3 Mon Sep 17 00:00:00 2001 From: Danny Holman Date: Fri, 25 Oct 2024 22:57:43 -0500 Subject: render: create the rendering subsystem Create the rendering subsystem and populate it with a basic Vulkan renderer. This renderer is not yet functional and should not be used yet. Signed-off-by: Danny Holman --- render/vulkan/vkassert.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 render/vulkan/vkassert.h (limited to 'render/vulkan/vkassert.h') diff --git a/render/vulkan/vkassert.h b/render/vulkan/vkassert.h new file mode 100644 index 0000000..393e2de --- /dev/null +++ b/render/vulkan/vkassert.h @@ -0,0 +1,15 @@ +#ifndef VKASSERT_H +#define VKASSERT_H + +#include +#include +#include + +static inline void vkassert(VkResult value, const char *str) { + if (value != VK_SUCCESS) { + log_output(LOG_ERROR, "Vulkan assertion failed: %s", str); + rune_abort(); + } +} + +#endif -- cgit v1.2.3