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.getdimensions.dx10.frag
Shader version: 450
gl_FragCoord origin is upper left
0:? Sequence
0:46 Function Definition: main( (global structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:46 Function Definition: main( (global structure{temp 4-component vector of float Color, temp float Depth})
0:46 Function Parameters:
0:? Sequence
0:65 Sequence
@ -1045,7 +1045,7 @@ gl_FragCoord origin is upper left
0:164 'g_tTex2dmsu4a' (uniform utexture2DMSArray)
0:276 move second child to first child (temp 4-component vector of float)
0:276 Color: direct index for structure (temp 4-component vector of float)
0:276 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:276 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
0:276 Constant:
0:276 0 (const int)
0:276 Constant:
@ -1054,8 +1054,8 @@ gl_FragCoord origin is upper left
0:276 1.000000
0:276 1.000000
0:277 move second child to first child (temp float)
0:277 Depth: direct index for structure (temp float FragDepth)
0:277 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:277 Depth: direct index for structure (temp float)
0:277 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
0:277 Constant:
0:277 1 (const int)
0:277 Constant:
@ -1065,13 +1065,13 @@ gl_FragCoord origin is upper left
0:279 move second child to first child (temp 4-component vector of float)
0:? 'Color' (layout(location=0 ) out 4-component vector of float)
0:279 Color: direct index for structure (temp 4-component vector of float)
0:279 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:279 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
0:279 Constant:
0:279 0 (const int)
0:279 move second child to first child (temp float)
0:? 'Depth' (out float FragDepth)
0:279 Depth: direct index for structure (temp float FragDepth)
0:279 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:279 Depth: direct index for structure (temp float)
0:279 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
0:279 Constant:
0:279 1 (const int)
0:279 Branch: Return
@ -1114,7 +1114,7 @@ Linked fragment stage:
Shader version: 450
gl_FragCoord origin is upper left
0:? Sequence
0:46 Function Definition: main( (global structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:46 Function Definition: main( (global structure{temp 4-component vector of float Color, temp float Depth})
0:46 Function Parameters:
0:? Sequence
0:65 Sequence
@ -2157,7 +2157,7 @@ gl_FragCoord origin is upper left
0:164 'g_tTex2dmsu4a' (uniform utexture2DMSArray)
0:276 move second child to first child (temp 4-component vector of float)
0:276 Color: direct index for structure (temp 4-component vector of float)
0:276 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:276 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
0:276 Constant:
0:276 0 (const int)
0:276 Constant:
@ -2166,8 +2166,8 @@ gl_FragCoord origin is upper left
0:276 1.000000
0:276 1.000000
0:277 move second child to first child (temp float)
0:277 Depth: direct index for structure (temp float FragDepth)
0:277 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:277 Depth: direct index for structure (temp float)
0:277 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
0:277 Constant:
0:277 1 (const int)
0:277 Constant:
@ -2177,13 +2177,13 @@ gl_FragCoord origin is upper left
0:279 move second child to first child (temp 4-component vector of float)
0:? 'Color' (layout(location=0 ) out 4-component vector of float)
0:279 Color: direct index for structure (temp 4-component vector of float)
0:279 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:279 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
0:279 Constant:
0:279 0 (const int)
0:279 move second child to first child (temp float)
0:? 'Depth' (out float FragDepth)
0:279 Depth: direct index for structure (temp float FragDepth)
0:279 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:279 Depth: direct index for structure (temp float)
0:279 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
0:279 Constant:
0:279 1 (const int)
0:279 Branch: Return
@ -2349,7 +2349,6 @@ gl_FragCoord origin is upper left
Decorate 482(g_tTex2dmsf4a) DescriptorSet 0
Decorate 496(g_tTex2dmsi4a) DescriptorSet 0
Decorate 510(g_tTex2dmsu4a) DescriptorSet 0
MemberDecorate 522(PS_OUTPUT) 1 BuiltIn FragDepth
Decorate 534(Color) Location 0
Decorate 538(Depth) BuiltIn FragDepth
Decorate 544(g_sSamp) DescriptorSet 0