Correct tests "DeviceFunctions" and "DispatchLoaderStatic" to actually use the static dispatch loader.
This commit is contained in:
@@ -16,6 +16,8 @@ cmake_minimum_required(VERSION 3.2)
|
||||
|
||||
if (NOT TESTS_BUILD_ONLY_DYNAMIC)
|
||||
|
||||
find_package(Vulkan REQUIRED)
|
||||
|
||||
project(DispatchLoaderStatic)
|
||||
|
||||
set(HEADERS
|
||||
@@ -38,6 +40,6 @@ if (NOT TESTS_BUILD_ONLY_DYNAMIC)
|
||||
endif()
|
||||
|
||||
set_target_properties(DispatchLoaderStatic PROPERTIES FOLDER "Tests")
|
||||
target_link_libraries(DispatchLoaderStatic PRIVATE utils)
|
||||
target_link_libraries(DispatchLoaderStatic PRIVATE utils "${Vulkan_LIBRARIES}")
|
||||
|
||||
endif()
|
||||
@@ -15,6 +15,9 @@
|
||||
// VulkanHpp Samples : DispatchLoaderStatic
|
||||
// Compile test on DispatchLoaderStatic functions
|
||||
|
||||
#undef VULKAN_HPP_DISPATCH_LOADER_DYNAMIC
|
||||
#define VULKAN_HPP_DISPATCH_LOADER_DYNAMIC 0
|
||||
|
||||
#include "vulkan/vulkan.hpp"
|
||||
|
||||
#include <iostream>
|
||||
|
||||
Reference in New Issue
Block a user