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.samplelevel.basic.dx10.frag
Shader version: 450
gl_FragCoord origin is upper left
0:? Sequence
0:29 Function Definition: main( (global structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:29 Function Definition: main( (global structure{temp 4-component vector of float Color, temp float Depth})
0:29 Function Parameters:
0:? Sequence
0:32 Sequence
@ -154,7 +154,7 @@ gl_FragCoord origin is upper left
0:46 0.750000
0:48 move second child to first child (temp 4-component vector of float)
0:48 Color: direct index for structure (temp 4-component vector of float)
0:48 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:48 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
0:48 Constant:
0:48 0 (const int)
0:48 Constant:
@ -163,8 +163,8 @@ gl_FragCoord origin is upper left
0:48 1.000000
0:48 1.000000
0:49 move second child to first child (temp float)
0:49 Depth: direct index for structure (temp float FragDepth)
0:49 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:49 Depth: direct index for structure (temp float)
0:49 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
0:49 Constant:
0:49 1 (const int)
0:49 Constant:
@ -174,13 +174,13 @@ gl_FragCoord origin is upper left
0:51 move second child to first child (temp 4-component vector of float)
0:? 'Color' (layout(location=0 ) out 4-component vector of float)
0:51 Color: direct index for structure (temp 4-component vector of float)
0:51 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:51 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
0:51 Constant:
0:51 0 (const int)
0:51 move second child to first child (temp float)
0:? 'Depth' (out float FragDepth)
0:51 Depth: direct index for structure (temp float FragDepth)
0:51 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:51 Depth: direct index for structure (temp float)
0:51 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
0:51 Constant:
0:51 1 (const int)
0:51 Branch: Return
@ -210,7 +210,7 @@ Linked fragment stage:
Shader version: 450
gl_FragCoord origin is upper left
0:? Sequence
0:29 Function Definition: main( (global structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:29 Function Definition: main( (global structure{temp 4-component vector of float Color, temp float Depth})
0:29 Function Parameters:
0:? Sequence
0:32 Sequence
@ -362,7 +362,7 @@ gl_FragCoord origin is upper left
0:46 0.750000
0:48 move second child to first child (temp 4-component vector of float)
0:48 Color: direct index for structure (temp 4-component vector of float)
0:48 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:48 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
0:48 Constant:
0:48 0 (const int)
0:48 Constant:
@ -371,8 +371,8 @@ gl_FragCoord origin is upper left
0:48 1.000000
0:48 1.000000
0:49 move second child to first child (temp float)
0:49 Depth: direct index for structure (temp float FragDepth)
0:49 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:49 Depth: direct index for structure (temp float)
0:49 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
0:49 Constant:
0:49 1 (const int)
0:49 Constant:
@ -382,13 +382,13 @@ gl_FragCoord origin is upper left
0:51 move second child to first child (temp 4-component vector of float)
0:? 'Color' (layout(location=0 ) out 4-component vector of float)
0:51 Color: direct index for structure (temp 4-component vector of float)
0:51 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:51 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
0:51 Constant:
0:51 0 (const int)
0:51 move second child to first child (temp float)
0:? 'Depth' (out float FragDepth)
0:51 Depth: direct index for structure (temp float FragDepth)
0:51 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:51 Depth: direct index for structure (temp float)
0:51 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
0:51 Constant:
0:51 1 (const int)
0:51 Branch: Return
@ -470,7 +470,6 @@ gl_FragCoord origin is upper left
Decorate 120(g_tTexcdf4) DescriptorSet 0
Decorate 129(g_tTexcdi4) DescriptorSet 0
Decorate 138(g_tTexcdu4) DescriptorSet 0
MemberDecorate 144(PS_OUTPUT) 1 BuiltIn FragDepth
Decorate 155(Color) Location 0
Decorate 159(Depth) BuiltIn FragDepth
Decorate 163(g_sSamp2d) DescriptorSet 0