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.samplebias.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
@ -154,7 +154,7 @@ gl_FragCoord origin is upper left
0:45 0.500000
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:
@ -163,8 +163,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:
@ -174,13 +174,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
@ -209,7 +209,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
@ -361,7 +361,7 @@ gl_FragCoord origin is upper left
0:45 0.500000
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:
@ -370,8 +370,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:
@ -381,13 +381,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
@ -467,7 +467,6 @@ gl_FragCoord origin is upper left
Decorate 119(g_tTexcdf4) DescriptorSet 0
Decorate 128(g_tTexcdi4) DescriptorSet 0
Decorate 137(g_tTexcdu4) DescriptorSet 0
MemberDecorate 143(PS_OUTPUT) 1 BuiltIn FragDepth
Decorate 154(Color) Location 0
Decorate 158(Depth) BuiltIn FragDepth
Decorate 162(g_tTex1df4a) DescriptorSet 0