mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-14 02:08:27 +08:00
FindVulkan: Fix test
Co-authored-by: Juan Ramos <cmake@jpr.mozmail.com>
This commit is contained in:
@@ -1,7 +1,12 @@
|
||||
#include <cassert>
|
||||
#include <cstdint>
|
||||
#include <cstdio>
|
||||
|
||||
#ifdef _WIN32
|
||||
# include <Windows.h>
|
||||
#endif
|
||||
|
||||
#include "dxc/dxcapi.h"
|
||||
#include "printf.h"
|
||||
|
||||
int main()
|
||||
{
|
||||
|
@@ -15,7 +15,7 @@ int main()
|
||||
try {
|
||||
|
||||
// initialize dynamic dispatcher
|
||||
vk::DynamicLoader dl;
|
||||
vk::detail::DynamicLoader dl;
|
||||
PFN_vkGetInstanceProcAddr vkGetInstanceProcAddr =
|
||||
dl.getProcAddress<PFN_vkGetInstanceProcAddr>("vkGetInstanceProcAddr");
|
||||
VULKAN_HPP_DEFAULT_DISPATCHER.init(vkGetInstanceProcAddr);
|
||||
|
Reference in New Issue
Block a user