mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2024-10-14 16:32:17 +00:00
Merge pull request #1376 from asuessenbach/natvis
Introduce VulkanHpp.natvis to nicely format vk::Flags in Visual Studio debugger.
This commit is contained in:
commit
408d26639e
@ -44,6 +44,10 @@ Optional: To update the Vulkan-Hpp and its submodules execute ```git pull --recu
|
|||||||
|
|
||||||
If the program clang-format is found by CMake, the define CLANG_FORMAT_EXECUTABLE is set accordingly. In that case, the generated vulkan.hpp is formatted using the .clang-format file located in the root directory of this project. Otherwise it's formatted as hard-coded in the generator.
|
If the program clang-format is found by CMake, the define CLANG_FORMAT_EXECUTABLE is set accordingly. In that case, the generated vulkan.hpp is formatted using the .clang-format file located in the root directory of this project. Otherwise it's formatted as hard-coded in the generator.
|
||||||
|
|
||||||
|
#### Custom views of Vulkan-Hpp objects in Visual Studio
|
||||||
|
|
||||||
|
The file VulkanHpp.natvis provides a custom view on vk::Flags for Visual Studio. If you add this file to the user-specific natvis directory of your Visual Studio installation (%USERPROFILE%\Documents\Visual Studio 2022\Visualizers), you get vk::Flags nicely formatted in your debugger with all your Visual Studio projects.
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
### namespace vk
|
### namespace vk
|
||||||
|
6
VulkanHpp.natvis
Normal file
6
VulkanHpp.natvis
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
|
||||||
|
<Type Name="vk::Flags<*>">
|
||||||
|
<DisplayString>[{($T1)m_mask}]</DisplayString>
|
||||||
|
</Type>
|
||||||
|
</AutoVisualizer>
|
Loading…
Reference in New Issue
Block a user