[英]How do I get the value of captured shader parameters
I'm looking for a frame capture program (like Intel GPA, GPUPerfStudio, PerfHUD, or DX Debugger) that allows me to get the value of shader parameters when I debug a captured frame. 我正在寻找一个帧捕获程序(例如Intel GPA,GPUPerfStudio,PerfHUD或DX Debugger),当我调试捕获的帧时,该程序可让我获取着色器参数的值。 In Intel GPA, it shows me the name as well as the type (like float
, float2
, float3
, or float4
) of the parameters, but it doesn't show me their value. 在Intel GPA中,它显示参数的名称以及类型(例如float
, float2
, float3
或float4
),但不会显示它们的值。
I tried looking at the API log, but it is unclear, and instead of printing the value parameter of SETVERTEXSHADERCONSTANTF
(which I presume sets the value of a shader parameter) it prints System.Single[]
. 我尝试查看API日志,但尚不清楚,而不是打印SETVERTEXSHADERCONSTANTF
的value参数(我假定它设置了着色器参数的值),而是打印System.Single[]
。
If you're using VS2013 you can debug your hlsl code with it: Debugging HLSL . 如果您使用的是VS2013,则可以使用它调试 hlsl代码: 调试HLSL 。 See also this video 另请参阅此视频
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.