https://github.com/halide/Halide
Revision c34fe9ec2db2b2b9c83efb8996f4a844cbe23a54 authored by Patricia Adriana Suriana on 20 September 2018, 15:44:00 UTC, committed by Patricia Adriana Suriana on 20 September 2018, 15:44:00 UTC
2 parent s caf9f8d + 0e39b46
Raw File
Tip revision: c34fe9ec2db2b2b9c83efb8996f4a844cbe23a54 authored by Patricia Adriana Suriana on 20 September 2018, 15:44:00 UTC
Merge branch 'master' of https://github.com/halide/Halide into compute_with_remove_is_right_level
Tip revision: c34fe9e
Halide.natvis
<?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>
back to top