Overv / VulkanTutorial

Tutorial for the Vulkan graphics and compute API
https://vulkan-tutorial.com
Creative Commons Attribution Share Alike 4.0 International
3.12k stars 513 forks source link

Validation layer is not working #151

Closed LJXLJXLJX closed 4 years ago

LJXLJXLJX commented 4 years ago

I just copy and paste 02_validation_layers.cpp to my project and run it, bug I didn't get any output in the console.
My vulkan sdk version is 1.1.121.2. Anyone can help me?

Overv commented 4 years ago

Please verify your Vulkan SDK installation as described here.

LJXLJXLJX commented 4 years ago

@Overv Hello, here is the output of VIA, it seems nothing wrong with installation.

VIA_INFO: SDK Found! - Will attempt to run tests VIA_INFO: Attempting to run vkcube.exe in D:\VulkanSDK\1.1.121.2\Bin VIA_INFO: Command-line: vkcube.exe --c 100 --suppress_popups VIA_INFO: Command-line: vkcube.exe --c 100 --suppress_popups --validate SUCCESS: Vulkan analysis completed properly using Vulkan 1.1

Overv commented 4 years ago

Right, I just reread your message and I get now what you're doing. With the code at the end of that chapter there's not supposed to be any output since there are no mistakes for the validation layers to find.