简体   繁体   English

如何获取捕获的着色器参数的值

[英]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中,它显示参数的名称以及类型(例如floatfloat2float3float4 ),但不会显示它们的值。

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.

相关问题 如何从着色器获取计算结果? - How do I get a calculation result from a shader? 从iPhone相机捕获的视频似乎被OpenCV旋转了90度? 我该如何解决? - Videos captured from an iPhone camera appear to be rotated by 90 degrees by OpenCV? How do I get around this? 如何将一半传递给顶点着色器? - How do I pass half to a vertex shader? 我实际上如何在捕获的一半图像上设置光流? - How do i actually set optical flow on half of the image captured? 如何将捕获的图像存储在OpenCV中(将图片保存到计算机) - How do I store the captured image in OpenCV (saving the picture to computer) 如何从顶点着色器中的vec3获取值? OpenGL 3.3 - How to get a value from vec3 in vertex shader? OpenGL 3.3 如何使用 sf::Shader::setUniform 在 GLSL 着色器中设置统一的 mat4? - How do I set uniform mat4 in GLSL shader using sf::Shader::setUniform? 如何访问模板包参数的模板参数 - How do I get access to template parameters of a template pack parameter 我如何从wavefront .obj文件获取索引的顶点位置和索引的顶点法线到OpenGL顶点着色器中? - How do I get indexed vertex positions AND indexed vertex normals from wavefront .obj file into an OpenGL vertex shader? 如何在不更改原始颜色的情况下使用着色器 - How do I use a shader without changing original color
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM