Commit 3eb318a
[VK] Gate debug utils messenger on runtime config instead of NDEBUG (#1269)
`registerDebugUtilCallback` was only invoked inside `#ifndef NDEBUG`,
leaving the function unused (and triggering `-Wunused-function`) in
`NDEBUG` builds. The extension registration itself had already been
converted to runtime config flags in #382; the call site was missed.
Tie the callback to whether `VK_EXT_debug_utils` was actually enabled,
and pull the extension in whenever either `EnableDebugLayer` or
`EnableValidationLayer` is set — so validation messages route through
the callback. This matches how the DX backend couples the two flags in
`lib/API/DX/Device.cpp`.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 43764b3 commit 3eb318a
1 file changed
Lines changed: 7 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3864 | 3864 | | |
3865 | 3865 | | |
3866 | 3866 | | |
3867 | | - | |
| 3867 | + | |
| 3868 | + | |
3868 | 3869 | | |
3869 | | - | |
| 3870 | + | |
3870 | 3871 | | |
| 3872 | + | |
| 3873 | + | |
3871 | 3874 | | |
3872 | 3875 | | |
3873 | 3876 | | |
| |||
3880 | 3883 | | |
3881 | 3884 | | |
3882 | 3885 | | |
3883 | | - | |
3884 | | - | |
3885 | | - | |
3886 | | - | |
3887 | | - | |
| 3886 | + | |
| 3887 | + | |
3888 | 3888 | | |
3889 | 3889 | | |
3890 | 3890 | | |
| |||
0 commit comments