diff options
author | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2024-04-21 00:58:07 +0200 |
---|---|---|
committer | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2024-04-21 00:58:07 +0200 |
commit | 2f7f41f3b8b9886b55858111a56500d2fb2fd4e8 (patch) | |
tree | 3314ce39af2f38e06baf0c8cb84208b8c4ba1b6b /main | |
parent | c147cb2a949d2a5c75804613c45e46c1a2ec8ab1 (diff) |
Add Vulkan headers
Diffstat (limited to 'main')
-rw-r--r-- | main/BUILD | 1 | ||||
-rw-r--r-- | main/main.cpp | 4 |
2 files changed, 4 insertions, 1 deletions
@@ -4,6 +4,7 @@ cc_binary( "main.cpp",
],
deps = [
+ "//3rd_party/vulkan",
"//deimos/core",
],
)
diff --git a/main/main.cpp b/main/main.cpp index 7a46861..80e94aa 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -1,7 +1,9 @@ +#include "vulkan_core.h" #include <deimos/core/api_registry.h>
#include <deimos/core/log.h>
#include <deimos/core/os.h>
#include <deimos/core/temp_allocator.h>
+#include <vulkan.h>
using namespace deimos;
@@ -17,7 +19,7 @@ int main(int /* argc */, char* /* argv */[]) Ensures(vulkan_dll != nullptr);
log_api->LogInfo("Vulkan DLL loaded");
- auto* vkGetInstanceProcAddr = os_api->dll->GetSymbol(vulkan_dll, "vkGetInstanceProcAddr");
+ auto vkGetInstanceProcAddr = (PFN_vkGetInstanceProcAddr)os_api->dll->GetSymbol(vulkan_dll, "vkGetInstanceProcAddr");
Ensures(vkGetInstanceProcAddr != nullptr);
log_api->LogInfo("vkGetInstanceProcAddr found");
|