在使用VS 2012 Graphic的调试器进行调试时,我想查看索引缓冲区,但显示它的格式为float。这意味着数字与int或短格式的数字不同。
有人知道如何改变这个吗?
这是.txt文件的样子。
The buffer format used is specified in the 'Graphics Object Table'.
---------------------------------------------------------------------------------------------------------------------------------
Types: bool, int, xint (an unsigned hex int), uint (unsigned int), int64, xint64, uint64,
byte, xbyte, ubyte, 2byte, x2byte, u2byte, 4byte, x4byte, u4byte, 8byte, x8byte, u8byte,
half (a 16-bit float), half2, half3, half4, float, float2, float3, float4, double
Usage: 'float' or 'float3 xint half half xint'
---------------------------------------------------------------------------------------------------------------------------------
Currently used format: float
---------------------------------------------------------------------------------------------------------------------------------
0 [0x00000000-0x00000003] | +1.8367099e-040
1 [0x00000004-0x00000007] | +9.1836897e-041
2 [0x00000008-0x0000000b] | +4.2038954e-045
3 [0x0000000c-0x0000000f] | +5.5101858e-040
4 [0x00000010-0x00000013] | +3.6734899e-040
5 [0x00000014-0x00000017] | +5.5102279e-040
6 [0x00000018-0x0000001b] | +9.1836617e-040
7 [0x0000001c-0x0000001f] | +8.2653208e-040
8 [0x00000020-0x00000023] | +7.3469938e-040
9 [0x00000024-0x00000027] | +1.2857138e-039
10 [0x00000028-0x0000002b] | +1.1938797e-039
11 [0x0000002c-0x0000002f] | +1.102047e-039
12 [0x00000030-0x00000033] | +1.6530614e-039
13 [0x00000034-0x00000037] | +1.6530628e-039
14 [0x00000038-0x0000003b] | +1.5612301e-039
15 [0x0000003c-0x0000003f] | +1.9285734e-039
16 [0x00000040-0x00000043] | +5.5102138e-040
17 [0x00000044-0x00000047] | +1.8367197e-039
答案 0 :(得分:2)
您需要通过图形对象表(菜单Debug> Graphics> Object Table)更改格式。
在表格中选择索引缓冲区,然后使用图形对象表顶部的缓冲区格式组合框更改其格式。