Skip to content

Crash with duplicate semantics on struct fields #1771

Closed

Description

Repro:

struct Input
{
    float a : TEXCOORD0;
    float b : TEXCOORD0;
};

float main(Input input) : SV_Target { return 1; }

This hits the following assert all the way into DxilPSVWriter::SetPSVSigElement, and crashes shortly thereafter:
DXASSERT_NOMSG(SE.GetRows() == SE.GetSemanticIndexVec().size());

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions