visual-studio-2012 - 改变DirectX的显示格式 "Object Table"

标签 visual-studio-2012 hlsl directx-11

在使用 VS 2012 Graphic 的调试器进行调试时,我想查看一个索引缓冲区,但显示它的格式是 float 。这意味着数字与 int 或 short 格式的数字不同。

有人知道怎么改吗?

这是 .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

最佳答案

您需要通过图形对象表(菜单调试 > 图形 > 对象表)更改格式。

在表中选择您的索引缓冲区,然后使用图形对象表顶部的缓冲区格式组合框更改其格式。

关于visual-studio-2012 - 改变DirectX的显示格式 "Object Table",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17898669/

相关文章:

visual-studio - 加载从TFS服务器检索的项目时,如何解决错误消息 “an error occurred registering this project with source control”?

configuration - Vs2012无法使用代理连接到Nuget

c++ - 两个具有相同元素的常量缓冲区

c# - 用于 Visual Studio 2012 的银光

c - 当我尝试编译 C 时,Visual Studio 给出多个错误

shader - HLSL 6+ 统一变量和编译

directx - 在 HLSL 中使用一个包含所有相关数据的大缓冲区还是使用几个较小的缓冲区更好?

c++ - Directx 11 深度测试不起作用

c++ - 在 DirectX 11 中渲染世界空间线

directx - 如何快速更新动态顶点缓冲区?