baldurk / renderdoc

RenderDoc is a stand-alone graphics debugging tool.
https://renderdoc.org
MIT License
8.81k stars 1.32k forks source link

incorrect VS Input Display for R10G10B10A2_UNORM Cast to float in mesh viewer #2628

Closed xuetaolu closed 2 years ago

xuetaolu commented 2 years ago

Description

VS Input data incorrent in Mesh Viewer

Steps to reproduce

It is no changes result below image out_attr3 is NormalDirection, which calc from in_attr0(ObjectPosition) and in_attr1(ObjectNormal)

but in_attr1(ObjectNormal) display is no incorrect.

if I edit the vert shader, out_attr3.xyzw = in_attr1.xyzw; out_attr3 is not equal to in_attr1 image

maybe it cause by the format of in_attr1, which is R10G10B10A2_UNORM Cast to float

I also try to set in_attr1 value manually, using the data showed in mesh view, but the result is also changed. image

Environment

版本 Windows 10 企业版 G 版本号 21H2 安装日期 ‎2021/‎10/‎14 操作系统内部版本 19044.1766 体验 Windows Feature Experience Pack 120.2212.4180.0

baldurk commented 2 years ago

RenderDoc is only intended for capturing your own programs. Capturing copyrighted programs that you do not have the rights to is not endorsed and I will provide absolutely no support for it.