Move debug messenger/callback from vkb::core::Instance to VulkanSample; cleanup of vkb::core::Instance#1487
Move debug messenger/callback from vkb::core::Instance to VulkanSample; cleanup of vkb::core::Instance#1487asuessenbach wants to merge 3 commits intoKhronosGroup:mainfrom
Conversation
|
hello_triangle and hpp_hello_triangle fail to start with this change in place. |
What platform, again? That is: I can't reproduce that failure on Windows. |
Sorry, my bad. It's actually hello_triangle and hello_triangle_1_3 that don't work. My brain is obviously translating what I see and what I type and getting it wrong :-) You've changed the window create to use: The second argument is The old code used the This only affects platforms using direct-to-display. On windowed platforms (GLFW/X11/Wayland), the |
dedcbef to
a90fe38
Compare
Please sorry to have missed that platform again! |
…e; cleanup of vkb::core::Instance
1783c3d
a90fe38 to
1783c3d
Compare
Description
The debug messenger/callback are not integral parts of vkb::core::Instance, but simple members of a VulkanSample.
After moving them over into the VulkanSample, the vkb::core::Instance could completely be cleaned up.
Note that the exensions sample
shader_debugprintfshowcases how this approach can be used to register multiple debug messengers.Build tested on Win11 with VS2022. Run tested on Win11 with NVidia GPU.
General Checklist:
Please ensure the following points are checked:
Note: The Samples CI runs a number of checks including:
If this PR contains framework changes:
batchcommand line argument to make sure all samples still work properlySample Checklist
If your PR contains a new or modified sample, these further checks must be carried out in addition to the General Checklist: