yum-mirror/glslang

git clone https://git.yummers.dev/yum-mirror/glslang

John KessenichHLSL: Intercept flatten aggregates passed to a function input, and copy member-by-member.5159d4f1

main
326 B20 linesraw
1struct InParam {
2    float2 v;
3    float4 fragCoord : SV_POSITION;
4    int2 i2;
5};
6
7float fun(InParam p)
8{
9    return p.v.y + p.fragCoord.x;
10}
11
12float4 PixelShaderFunction(InParam i) : COLOR0
13{
14    InParam local;
15    local = i;
16    float ret1 = fun(local);
17    float ret2 = fun(i);
18
19    return local.fragCoord * ret1 * ret2;
20}