File: Halide.natvis

package info (click to toggle)
halide 21.0.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 55,752 kB
  • sloc: cpp: 289,334; ansic: 22,751; python: 7,486; makefile: 4,299; sh: 2,508; java: 1,549; javascript: 282; pascal: 207; xml: 127; asm: 9
file content (39 lines) | stat: -rw-r--r-- 1,387 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?xml version="1.0" encoding="utf-8"?>
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">

	<UIVisualizer ServiceId="{A452AFEA-3DF6-46BB-9177-C0B08F318025}" Id="1" MenuName="Add to Image Watch"/>

	<Type Name="Halide::Internal::BufferContents">
		<DisplayString>{{ {name} }}</DisplayString>
		<Expand>
			<Synthetic Name="[type]" Condition='type.code == 0'>
				<DisplayString>INT{type.bits}</DisplayString>
			</Synthetic>
			<Synthetic Name="[type]" Condition='type.code == 1'>
				<DisplayString>UINT{type.bits}</DisplayString>
			</Synthetic>
			<Synthetic Name="[type]" Condition='type.code == 2'>
				<DisplayString>FLOAT{type.bits}</DisplayString>
			</Synthetic>
			<Item Name="[channels]">buf.extent[2] > 1 ? buf.extent[2] : 1</Item>
			<Item Name="[planes]">buf.extent[2] > 1 ? buf.extent[2] : 1</Item>
			<Item Name="[width]">buf.extent[0]</Item>
			<Item Name="[height]">buf.extent[1]</Item>
			<Item Name="[data]">buf.host</Item>
			<Item Name="[stride]">buf.stride[1] * buf.elem_size</Item>
			<Item Name="raw">this</Item>
		</Expand>
	</Type>

	<Type Name="Halide::Buffer">
		<UIVisualizer ServiceId="{A452AFEA-3DF6-46BB-9177-C0B08F318025}" Id="1" />
	</Type>

	<Type Name="Halide::Buffer">
		<Expand>
			<ExpandedItem>
				(Halide.dll!Halide::Internal::BufferContents*)contents.ptr
			</ExpandedItem>
		</Expand>
	</Type>
</AutoVisualizer>