KhronosGroup / KhronosGroup/glslang

HLSL/reflection: flattening/splitting loses semantic

Open
#955 3 comments 0 reactions 0 assignees View on GitHub
bug HLSL
Dominant language
C++
Stars
3.6k
Forks
989
Avg merge
1d 2h
Merged PRs (30d)
31

Description

input "t.UV" doesn't have the TEXCOORD0 semantic qualifier

```
struct S2 {
float2 UV;
};

struct S {
S2 t : TEXCOORD0;
};

S main(S ins)
{
S s = ins;
return s;
}
```

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the HLSL example and inspect how reflection handles flattening and splitting nested structures. Verify why input "t.UV" loses the TEXCOORD0 semantic qualifier, and consider the issue complete when that qualifier is preserved.

Written by the indexing model from the issue text.

Assessment

Domain
compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.