HLSL: Remove extraneous built-in member decorations for IO structs used in non-IO situations.

This commit is contained in:
John Kessenich 2016-09-19 22:16:09 -06:00
parent 86f7138706
commit 6b71c400f8
56 changed files with 724 additions and 769 deletions

View file

@ -18,7 +18,7 @@ gl_FragCoord origin is upper left
0:11 'x' (in float)
0:11 Constant:
0:11 -1.000000
0:15 Function Definition: main(vf4; (global structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:15 Function Definition: main(vf4; (global structure{temp 4-component vector of float Color, temp float Depth})
0:15 Function Parameters:
0:15 'inpos' (noperspective in 4-component vector of float FragCoord)
0:? Sequence
@ -37,7 +37,7 @@ gl_FragCoord origin is upper left
0:19 'z' (temp float)
0:21 move second child to first child (temp 4-component vector of float)
0:21 Color: direct index for structure (temp 4-component vector of float)
0:21 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:21 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
0:21 Constant:
0:21 0 (const int)
0:? Construct vec4 (temp 4-component vector of float)
@ -47,8 +47,8 @@ gl_FragCoord origin is upper left
0:21 Constant:
0:21 1.000000
0:22 move second child to first child (temp float)
0:22 Depth: direct index for structure (temp float FragDepth)
0:22 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:22 Depth: direct index for structure (temp float)
0:22 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
0:22 Constant:
0:22 1 (const int)
0:22 direct index (temp float)
@ -60,13 +60,13 @@ gl_FragCoord origin is upper left
0:24 move second child to first child (temp 4-component vector of float)
0:? 'Color' (layout(location=0 ) out 4-component vector of float)
0:24 Color: direct index for structure (temp 4-component vector of float)
0:24 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:24 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
0:24 Constant:
0:24 0 (const int)
0:24 move second child to first child (temp float)
0:? 'Depth' (out float FragDepth)
0:24 Depth: direct index for structure (temp float FragDepth)
0:24 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:24 Depth: direct index for structure (temp float)
0:24 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
0:24 Constant:
0:24 1 (const int)
0:24 Branch: Return
@ -98,7 +98,7 @@ gl_FragCoord origin is upper left
0:11 'x' (in float)
0:11 Constant:
0:11 -1.000000
0:15 Function Definition: main(vf4; (global structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:15 Function Definition: main(vf4; (global structure{temp 4-component vector of float Color, temp float Depth})
0:15 Function Parameters:
0:15 'inpos' (noperspective in 4-component vector of float FragCoord)
0:? Sequence
@ -117,7 +117,7 @@ gl_FragCoord origin is upper left
0:19 'z' (temp float)
0:21 move second child to first child (temp 4-component vector of float)
0:21 Color: direct index for structure (temp 4-component vector of float)
0:21 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:21 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
0:21 Constant:
0:21 0 (const int)
0:? Construct vec4 (temp 4-component vector of float)
@ -127,8 +127,8 @@ gl_FragCoord origin is upper left
0:21 Constant:
0:21 1.000000
0:22 move second child to first child (temp float)
0:22 Depth: direct index for structure (temp float FragDepth)
0:22 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:22 Depth: direct index for structure (temp float)
0:22 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
0:22 Constant:
0:22 1 (const int)
0:22 direct index (temp float)
@ -140,13 +140,13 @@ gl_FragCoord origin is upper left
0:24 move second child to first child (temp 4-component vector of float)
0:? 'Color' (layout(location=0 ) out 4-component vector of float)
0:24 Color: direct index for structure (temp 4-component vector of float)
0:24 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:24 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
0:24 Constant:
0:24 0 (const int)
0:24 move second child to first child (temp float)
0:? 'Depth' (out float FragDepth)
0:24 Depth: direct index for structure (temp float FragDepth)
0:24 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:24 Depth: direct index for structure (temp float)
0:24 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
0:24 Constant:
0:24 1 (const int)
0:24 Branch: Return
@ -182,7 +182,6 @@ gl_FragCoord origin is upper left
Name 45 "inpos"
Name 53 "Color"
Name 57 "Depth"
MemberDecorate 31(PS_OUTPUT) 1 BuiltIn FragDepth
Decorate 45(inpos) NoPerspective
Decorate 45(inpos) BuiltIn FragCoord
Decorate 53(Color) Location 0