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

@@ -2,7 +2,7 @@ hlsl.pp.line.frag
Shader version: 450
gl_FragCoord origin is upper left
0:? Sequence
0:4 Function Definition: main( (global structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:4 Function Definition: main( (global structure{temp 4-component vector of float Color, temp float Depth})
0:4 Function Parameters:
0:? Sequence
0:124 Sequence
@@ -12,7 +12,7 @@ gl_FragCoord origin is upper left
0:124 124 (const int)
0:126 move second child to first child (temp 4-component vector of float)
0:126 Color: direct index for structure (temp 4-component vector of float)
0:126 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:126 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
0:126 Constant:
0:126 0 (const int)
0:? Construct vec4 (temp 4-component vector of float)
@@ -25,8 +25,8 @@ gl_FragCoord origin is upper left
0:126 Constant:
0:126 1.000000
0:127 move second child to first child (temp float)
0:127 Depth: direct index for structure (temp float FragDepth)
0:127 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:127 Depth: direct index for structure (temp float)
0:127 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
0:127 Constant:
0:127 1 (const int)
0:127 Constant:
@@ -36,13 +36,13 @@ gl_FragCoord origin is upper left
0:129 move second child to first child (temp 4-component vector of float)
0:? 'Color' (layout(location=0 ) out 4-component vector of float)
0:129 Color: direct index for structure (temp 4-component vector of float)
0:129 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:129 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
0:129 Constant:
0:129 0 (const int)
0:129 move second child to first child (temp float)
0:? 'Depth' (out float FragDepth)
0:129 Depth: direct index for structure (temp float FragDepth)
0:129 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:129 Depth: direct index for structure (temp float)
0:129 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
0:129 Constant:
0:129 1 (const int)
0:129 Branch: Return
@@ -57,7 +57,7 @@ Linked fragment stage:
Shader version: 450
gl_FragCoord origin is upper left
0:? Sequence
0:4 Function Definition: main( (global structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:4 Function Definition: main( (global structure{temp 4-component vector of float Color, temp float Depth})
0:4 Function Parameters:
0:? Sequence
0:124 Sequence
@@ -67,7 +67,7 @@ gl_FragCoord origin is upper left
0:124 124 (const int)
0:126 move second child to first child (temp 4-component vector of float)
0:126 Color: direct index for structure (temp 4-component vector of float)
0:126 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:126 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
0:126 Constant:
0:126 0 (const int)
0:? Construct vec4 (temp 4-component vector of float)
@@ -80,8 +80,8 @@ gl_FragCoord origin is upper left
0:126 Constant:
0:126 1.000000
0:127 move second child to first child (temp float)
0:127 Depth: direct index for structure (temp float FragDepth)
0:127 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:127 Depth: direct index for structure (temp float)
0:127 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
0:127 Constant:
0:127 1 (const int)
0:127 Constant:
@@ -91,13 +91,13 @@ gl_FragCoord origin is upper left
0:129 move second child to first child (temp 4-component vector of float)
0:? 'Color' (layout(location=0 ) out 4-component vector of float)
0:129 Color: direct index for structure (temp 4-component vector of float)
0:129 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:129 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
0:129 Constant:
0:129 0 (const int)
0:129 move second child to first child (temp float)
0:? 'Depth' (out float FragDepth)
0:129 Depth: direct index for structure (temp float FragDepth)
0:129 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:129 Depth: direct index for structure (temp float)
0:129 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
0:129 Constant:
0:129 1 (const int)
0:129 Branch: Return
@@ -122,7 +122,6 @@ gl_FragCoord origin is upper left
Name 14 "psout"
Name 27 "Color"
Name 31 "Depth"
MemberDecorate 12(PS_OUTPUT) 1 BuiltIn FragDepth
Decorate 27(Color) Location 0
Decorate 31(Depth) BuiltIn FragDepth
2: TypeVoid