Skip to content

Commit a4dc754

Browse files
committed
Merge branch 'przemog_visualizer' into erfan_todos
2 parents d8bbc00 + 6d6146b commit a4dc754

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

src/nbl/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,10 @@ set(NABLA_SRCS_COMMON
314314
${NBL_UI_SOURCES}
315315
)
316316

317+
if(MSVC AND NBL_BUILD_TOOLS)
318+
list(APPEND NABLA_SRCS_COMMON "${PROJECT_SOURCE_DIR}/tools/debug/VisualStudio/DynamicArrayVisualizer.natvis")
319+
endif()
320+
317321
if (NBL_EMBED_BUILTIN_RESOURCES)
318322
list(APPEND NABLA_SRCS_COMMON "${CMAKE_BINARY_DIR}/src/nbl/builtin/builtinResourceData.cpp")
319323
endif()
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
3+
4+
<Type Name="nbl::core::refctd_dynamic_array&lt;*&gt;">
5+
<DisplayString>size={item_count} elementType={"$T1"}</DisplayString>
6+
<Expand>
7+
<Item Name="size">item_count</Item>
8+
<ArrayItems>
9+
<Size>item_count</Size>
10+
<ValuePointer>reinterpret_cast&lt;$T1*&gt;(this)+dummy_item_count</ValuePointer>
11+
</ArrayItems>
12+
</Expand>
13+
</Type>
14+
</AutoVisualizer>

0 commit comments

Comments
 (0)