HLSL打印功能在运行Unity着色器的代码计算时
我在Unity Games中使用HLSL
用于着色器,我需要打印一些值,而hlsl
没有 console 或类似于控制台,因为它是由Unity Compute着色器运行的。
因此,如何在HLSL中打印值。
i use HLSL
for shaders in unity games and i need to print some values and the HLSL
dont have console or something like console ,because it is run from unity compute shaders.
so How i can print the Values in HLSL.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用RenderDoc到调试着色器。
https://renderdoc.org/
https://docs.unity3d.com/manual/renderdocintegration.html
Use RenderDoc to debug shaders.
https://renderdoc.org/
https://docs.unity3d.com/Manual/RenderDocIntegration.html