microsoft / microsoft/DirectXShaderCompiler
Structs passed to subroutines (can) cause the numbering pass to get confused about offsets of members
Open
@jeffnn is already working on this.
Since May 27, 2020.
- Dominant language
- C++
- Stars
- 3.7k
- Forks
- 900
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 44
Description
Repro: edit the PixStructAnnotation_SequentialFloatN case in DXCompiler's pixtest.cpp to pass the payload struct to a subroutine, and have the subroutine call DispatchMesh, then run the unit test.
Not clear yet what set of structs are affected. Certainly there are structs in the wild that don't show this problem- could be something to do with the fact that those shaders were compiled with older dxc, or something to do with the structs themselvs.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.