microsoft / microsoft/DirectXShaderCompiler
Arrays of structs in GS OutputStreams are not supported
Open
@tristanlabelle is already working on this.
Since Dec 12, 2018.
bug
- Dominant language
- C++
- Stars
- 3.7k
- Forks
- 900
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 44
Description
Repro:
struct GSInOutNested { float value : TEXCOORD0; };
struct GSInOut { GSInOutNested nested[1]; };
[maxvertexcount(1)]
void main(point GSInOut input[1], inout PointStream<GSInOut> output)
{
output.Append(input[0]);
}
It looks like this was never implemented. It will currently hit this assert:
DXASSERT(0, "Not support array of struct when split pointers.");
(from ::SplitPtr, in file D:\DirectXShaderCompiler\lib\Transforms\Scalar\ScalarReplAggregatesHLSL.cpp)
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.