Closed qingyuanzNV closed 3 months ago
It turns out it's a non-trivial effort to add a test for this. I have to change the test infrastructure to pass in a customized includer and optionally pass in the shader name for non-semantic debug.
Btw, I noticed that the source text for main file is wrong for the test result. I didn't fix it because it looks like an old issue, not a regression by this PR.
Change to draft. The test infra part is increasingly complicated, and I think it's worth a dedicated PR. I'd like to extract the test infra part and commit that first.
This patch fixes:
For example, say we have:
The existing implementation would point
foo
to "main.frag" instead of "test.h" in DebugFunction instruction. Also, it doesn't generate DebugLine instruction for DebugDeclare of parameterx
andy
, leaving them with no line info associated. This patch should fix both.