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.samplegrad.basic.dx10.frag
Shader version: 450
gl_FragCoord origin is upper left
0:? Sequence
0:28 Function Definition: main( (global structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:28 Function Definition: main( (global structure{temp 4-component vector of float Color, temp float Depth})
0:28 Function Parameters:
0:? Sequence
0:31 Sequence
@@ -208,7 +208,7 @@ gl_FragCoord origin is upper left
0:? 1.300000
0:47 move second child to first child (temp 4-component vector of float)
0:47 Color: direct index for structure (temp 4-component vector of float)
0:47 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:47 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
0:47 Constant:
0:47 0 (const int)
0:47 Constant:
@@ -217,8 +217,8 @@ gl_FragCoord origin is upper left
0:47 1.000000
0:47 1.000000
0:48 move second child to first child (temp float)
0:48 Depth: direct index for structure (temp float FragDepth)
0:48 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:48 Depth: direct index for structure (temp float)
0:48 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
0:48 Constant:
0:48 1 (const int)
0:48 Constant:
@@ -228,13 +228,13 @@ gl_FragCoord origin is upper left
0:50 move second child to first child (temp 4-component vector of float)
0:? 'Color' (layout(location=0 ) out 4-component vector of float)
0:50 Color: direct index for structure (temp 4-component vector of float)
0:50 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:50 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
0:50 Constant:
0:50 0 (const int)
0:50 move second child to first child (temp float)
0:? 'Depth' (out float FragDepth)
0:50 Depth: direct index for structure (temp float FragDepth)
0:50 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:50 Depth: direct index for structure (temp float)
0:50 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
0:50 Constant:
0:50 1 (const int)
0:50 Branch: Return
@@ -263,7 +263,7 @@ Linked fragment stage:
Shader version: 450
gl_FragCoord origin is upper left
0:? Sequence
0:28 Function Definition: main( (global structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:28 Function Definition: main( (global structure{temp 4-component vector of float Color, temp float Depth})
0:28 Function Parameters:
0:? Sequence
0:31 Sequence
@@ -469,7 +469,7 @@ gl_FragCoord origin is upper left
0:? 1.300000
0:47 move second child to first child (temp 4-component vector of float)
0:47 Color: direct index for structure (temp 4-component vector of float)
0:47 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:47 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
0:47 Constant:
0:47 0 (const int)
0:47 Constant:
@@ -478,8 +478,8 @@ gl_FragCoord origin is upper left
0:47 1.000000
0:47 1.000000
0:48 move second child to first child (temp float)
0:48 Depth: direct index for structure (temp float FragDepth)
0:48 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:48 Depth: direct index for structure (temp float)
0:48 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
0:48 Constant:
0:48 1 (const int)
0:48 Constant:
@@ -489,13 +489,13 @@ gl_FragCoord origin is upper left
0:50 move second child to first child (temp 4-component vector of float)
0:? 'Color' (layout(location=0 ) out 4-component vector of float)
0:50 Color: direct index for structure (temp 4-component vector of float)
0:50 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:50 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
0:50 Constant:
0:50 0 (const int)
0:50 move second child to first child (temp float)
0:? 'Depth' (out float FragDepth)
0:50 Depth: direct index for structure (temp float FragDepth)
0:50 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:50 Depth: direct index for structure (temp float)
0:50 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
0:50 Constant:
0:50 1 (const int)
0:50 Branch: Return
@@ -575,7 +575,6 @@ gl_FragCoord origin is upper left
Decorate 124(g_tTexcdf4) DescriptorSet 0
Decorate 133(g_tTexcdi4) DescriptorSet 0
Decorate 142(g_tTexcdu4) DescriptorSet 0
MemberDecorate 148(PS_OUTPUT) 1 BuiltIn FragDepth
Decorate 159(Color) Location 0
Decorate 163(Depth) BuiltIn FragDepth
Decorate 167(g_tTex1df4a) DescriptorSet 0