microsoft / microsoft/DirectXShaderCompiler

Arrays of structs in GS OutputStreams are not supported

Open
#1,768 1 comment 0 reactions 1 assignee View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.