diff options
author | omnisci3nce <17525998+omnisci3nce@users.noreply.github.com> | 2024-03-23 12:19:52 +1100 |
---|---|---|
committer | omnisci3nce <17525998+omnisci3nce@users.noreply.github.com> | 2024-03-23 12:19:52 +1100 |
commit | df80f2cf0b851b527f715ebfe385dc4930a61512 (patch) | |
tree | 5029f1a5d9d436c540451aa8c00bfe0cebed560a /src/renderer/backends/vulkan_helpers.h | |
parent | 4fa2db8e3dbcca107af1b6bb027cbcb752199705 (diff) |
required extensions and validation layers
Diffstat (limited to 'src/renderer/backends/vulkan_helpers.h')
-rw-r--r-- | src/renderer/backends/vulkan_helpers.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/renderer/backends/vulkan_helpers.h b/src/renderer/backends/vulkan_helpers.h new file mode 100644 index 0000000..058ea91 --- /dev/null +++ b/src/renderer/backends/vulkan_helpers.h @@ -0,0 +1,19 @@ +#pragma once + +#include <assert.h> +#include <vulkan/vulkan.h> + +#include "darray.h" +#include "defines.h" + +DECL_TYPED_ARRAY(const char*, cstr) + +static void plat_get_required_extension_names(cstr_darray* extensions) { +#ifdef CEL_PLATFORM_LINUX + cstr_darray_push(extensions, "VK_KHR_xcb_surface"); +#endif +} + +// TODO(omni): port to using internal assert functions +#define VK_CHECK(vulkan_expr) \ + { assert(vulkan_expr == VK_SUCCESS); }
\ No newline at end of file |