Issue 181674
Summary [Clang][HLSL] Bad semantic store when storing in a struct
Labels clang
Assignees Keenuts
Reporter Keenuts
    The following HLSL shader fails when building:

```hlsl
struct Inner {
 uint b : B;
};

struct VSInput {
    float4 position : POSITION;
};

struct VSOutput {
    float4 position : SV_POSITION;
 uint a : A;
    Inner inner;
    uint c : C;
};

VSOutput main(VSInput input) {
    VSOutput output;
    output.position = input.position;
 output.a = 1;
    output.inner.b = 2;
    output.c = 3;
    return output;
}
```

Seems like a `++FieldDecl` is missing in the store logic.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to