Add Chromium-only Blender WebEngine parity work
This commit is contained in:
117
blender-5.2.0/tools/utils_ide/natvis/Blender.natvis
Normal file
117
blender-5.2.0/tools/utils_ide/natvis/Blender.natvis
Normal file
@@ -0,0 +1,117 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
|
||||
<Type Name="blender::StringRef">
|
||||
<DisplayString>{data_,[size_]s} (size={size_})</DisplayString>
|
||||
</Type>
|
||||
<Type Name="blender::Vector<*>">
|
||||
<DisplayString>{{size={end_ - begin_}}}</DisplayString>
|
||||
<Expand>
|
||||
<Item Name="[size]" ExcludeView="simple"> end_ - begin_</Item>
|
||||
<Item Name="[capacity]" ExcludeView="simple">capacity_end_ - begin_</Item>
|
||||
<ArrayItems>
|
||||
<Size>end_ - begin_</Size>
|
||||
<ValuePointer>begin_</ValuePointer>
|
||||
</ArrayItems>
|
||||
</Expand>
|
||||
</Type>
|
||||
<Type Name="blender::Span<*>">
|
||||
<DisplayString>{{size={size_ }}}</DisplayString>
|
||||
<Expand>
|
||||
<Item Name="[size]" ExcludeView="simple"> size_</Item>
|
||||
<ArrayItems>
|
||||
<Size>size_</Size>
|
||||
<ValuePointer>data_</ValuePointer>
|
||||
</ArrayItems>
|
||||
</Expand>
|
||||
</Type>
|
||||
<Type Name="blender::VecBase<*,3>">
|
||||
<DisplayString>{{x={x}, y={y}, z={z}}}</DisplayString>
|
||||
</Type>
|
||||
<Type Name="blender::Array<*>">
|
||||
<DisplayString>{{size={size_ }}}</DisplayString>
|
||||
<Expand>
|
||||
<Item Name="[size]" ExcludeView="simple"> size_</Item>
|
||||
<ArrayItems>
|
||||
<Size>size_</Size>
|
||||
<ValuePointer>data_</ValuePointer>
|
||||
</ArrayItems>
|
||||
</Expand>
|
||||
</Type>
|
||||
<!-- visualizer for Map with pointer keys (IntrusiveMapSlot slot type) -->
|
||||
<Type Name="blender::Map<*>" Priority="MediumLow">
|
||||
<DisplayString>Size={occupied_and_removed_slots_ - removed_slots_}</DisplayString>
|
||||
<Expand>
|
||||
<CustomListItems MaxItemsPerView="5000">
|
||||
<Variable Name="slot" InitialValue="slots_.data_"/>
|
||||
<Variable Name="i" InitialValue="0"/>
|
||||
<Loop>
|
||||
<Break Condition="i >= occupied_and_removed_slots_ - removed_slots_"/>
|
||||
<If Condition="(uint64_t)slot->key_ < 0xfffffffffffffffe">
|
||||
<Item Name="{slot->key_}">slot->value_buffer_</Item>
|
||||
<Exec>++i</Exec>
|
||||
</If>
|
||||
<Exec>++slot</Exec>
|
||||
</Loop>
|
||||
</CustomListItems>
|
||||
</Expand>
|
||||
</Type>
|
||||
<!-- visualizer for regular Map (SimpleMapSlot slot type) -->
|
||||
<Type Name="blender::Map<*>">
|
||||
<DisplayString>Size={occupied_and_removed_slots_ - removed_slots_}</DisplayString>
|
||||
<Expand>
|
||||
<CustomListItems>
|
||||
<Variable Name="slot" InitialValue="slots_.data_"/>
|
||||
<Variable Name="i" InitialValue="0"/>
|
||||
<Loop>
|
||||
<Item Condition="slot->state_ == 1" Name="{slot->key_buffer_}">slot->value_buffer_</Item>
|
||||
<Exec>++slot</Exec>
|
||||
<Exec>++i</Exec>
|
||||
<Break Condition="i > slots_.size_"/>
|
||||
</Loop>
|
||||
</CustomListItems>
|
||||
</Expand>
|
||||
</Type>
|
||||
<!-- visualizer for Set with pointer keys (IntrusiveSetSlot slot type) -->
|
||||
<Type Name="blender::Set<*>" Priority="MediumLow">
|
||||
<DisplayString>Size={occupied_and_removed_slots_ - removed_slots_}</DisplayString>
|
||||
<Expand>
|
||||
<CustomListItems MaxItemsPerView="5000">
|
||||
<Variable Name="slot" InitialValue="slots_.data_"/>
|
||||
<Variable Name="i" InitialValue="0"/>
|
||||
<Loop>
|
||||
<Break Condition="i >= occupied_and_removed_slots_ - removed_slots_"/>
|
||||
<If Condition="(uint64_t)slot->key_ < 0xfffffffffffffffe">
|
||||
<Item Name="[{i}]">slot->key_</Item>
|
||||
<Exec>++i</Exec>
|
||||
</If>
|
||||
<Exec>++slot</Exec>
|
||||
</Loop>
|
||||
</CustomListItems>
|
||||
</Expand>
|
||||
</Type>
|
||||
<!-- visualizer for regular Set (SimpleSetSlot slot type) -->
|
||||
<Type Name="blender::Set<*>">
|
||||
<DisplayString>Size={occupied_and_removed_slots_ - removed_slots_}</DisplayString>
|
||||
<Expand>
|
||||
<CustomListItems>
|
||||
<Variable Name="slot" InitialValue="slots_.data_"/>
|
||||
<Variable Name="i" InitialValue="0"/>
|
||||
<Loop>
|
||||
<Break Condition="i >= occupied_and_removed_slots_ - removed_slots_"/>
|
||||
<If Condition="slot->state_ == 1">
|
||||
<Item Name="[{i}]">slot->key_buffer_</Item>
|
||||
<Exec>++i</Exec>
|
||||
</If>
|
||||
<Exec>++slot</Exec>
|
||||
</Loop>
|
||||
</CustomListItems>
|
||||
</Expand>
|
||||
</Type>
|
||||
|
||||
<Type Name="blender::TypedBuffer<*,*>">
|
||||
<DisplayString>{*($T1*)buffer_.buffer_.buffer_}</DisplayString>
|
||||
<Expand>
|
||||
<ExpandedItem>*($T1*)buffer_.buffer_.buffer_,nd</ExpandedItem>
|
||||
</Expand>
|
||||
</Type>
|
||||
</AutoVisualizer>
|
||||
Reference in New Issue
Block a user