Skip to content

Commit 89d03d5

Browse files
committed
Examples: Vulkan: Disable IMGUI_VULKAN_DEBUG_REPORT by default. Update .bat files for newer VulkanSDK.
1 parent 56dff3a commit 89d03d5

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
@REM Build for Visual Studio compiler. Run your copy of vcvars32.bat or vcvarsall.bat to setup command-line compiler.
22
mkdir Debug
3-
cl /nologo /Zi /MD /I ..\.. /I ..\libs\glfw\include /I %VULKAN_SDK%\include *.cpp ..\..\*.cpp /FeDebug/vulkan_example.exe /FoDebug/ /link /LIBPATH:..\libs\glfw\lib-vc2010-32 /libpath:%VULKAN_SDK%\bin32 glfw3.lib opengl32.lib gdi32.lib shell32.lib vulkan-1.lib
3+
cl /nologo /Zi /MD /I ..\.. /I ..\libs\glfw\include /I %VULKAN_SDK%\include *.cpp ..\..\*.cpp /FeDebug/vulkan_example.exe /FoDebug/ /link /LIBPATH:..\libs\glfw\lib-vc2010-32 /libpath:%VULKAN_SDK%\lib32 glfw3.lib opengl32.lib gdi32.lib shell32.lib vulkan-1.lib
44

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
@REM Build for Visual Studio compiler. Run your copy of amd64/vcvars32.bat to setup 64-bit command-line compiler.
22
mkdir Debug
3-
cl /nologo /Zi /MD /I ..\.. /I ..\libs\glfw\include /I %VULKAN_SDK%\include *.cpp ..\..\*.cpp /FeDebug/vulkan_example.exe /FoDebug/ /link /LIBPATH:..\libs\glfw\lib-vc2010-64 /libpath:%VULKAN_SDK%\bin glfw3.lib opengl32.lib gdi32.lib shell32.lib vulkan-1.lib
3+
cl /nologo /Zi /MD /I ..\.. /I ..\libs\glfw\include /I %VULKAN_SDK%\include *.cpp ..\..\*.cpp /FeDebug/vulkan_example.exe /FoDebug/ /link /LIBPATH:..\libs\glfw\lib-vc2010-64 /libpath:%VULKAN_SDK%\lib glfw3.lib opengl32.lib gdi32.lib shell32.lib vulkan-1.lib
44

examples/vulkan_example/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
#define IMGUI_MAX_POSSIBLE_BACK_BUFFERS 16
1515
#define IMGUI_UNLIMITED_FRAME_RATE
16-
#define IMGUI_VULKAN_DEBUG_REPORT
16+
//#define IMGUI_VULKAN_DEBUG_REPORT
1717

1818
static VkAllocationCallbacks* g_Allocator = NULL;
1919
static VkInstance g_Instance = VK_NULL_HANDLE;
@@ -233,7 +233,7 @@ static void setup_vulkan(GLFWwindow* window)
233233
extensions[ extensions_count ] = "VK_EXT_debug_report";
234234
create_info.enabledExtensionCount = extensions_count+1;
235235
create_info.ppEnabledExtensionNames = extensions;
236-
#elif
236+
#else
237237
create_info.enabledExtensionCount = extensions_count;
238238
create_info.ppEnabledExtensionNames = glfw_extensions;
239239
#endif // IMGUI_VULKAN_DEBUG_REPORT

0 commit comments

Comments
 (0)