Introducde getDispatchLoaderStatic() to prevent dangling pointers in debug builds

This commit is contained in:
asuessenbach
2021-09-08 09:53:25 +02:00
parent 6a8e344bb0
commit 13bdb2ff69
7 changed files with 131 additions and 15 deletions

View File

@@ -50,6 +50,9 @@ MyVulkanTest::MyVulkanTest()
int main( int /*argc*/, char ** /*argv*/ )
{
// to prevent a warning on unreferenced function vk::getDispatchLoaderStatic, use just one arbitrary vk-function
vk::enumerateInstanceVersion();
char const * appName = "DesignatedInitializers";
uint32_t appVersion = 1;
char const * engineName = "Vulkan.hpp";