Introducde getDispatchLoaderStatic() to prevent dangling pointers in debug builds
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user