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.samplecmp.basic.dx10.frag
Shader version: 450
gl_FragCoord origin is upper left
0:? Sequence
0:38 Function Definition: main( (global structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:38 Function Definition: main( (global structure{temp 4-component vector of float Color, temp float Depth})
0:38 Function Parameters:
0:? Sequence
0:42 Sequence
@@ -124,7 +124,7 @@ gl_FragCoord origin is upper left
0:55 0.750000
0:57 move second child to first child (temp 4-component vector of float)
0:57 Color: direct index for structure (temp 4-component vector of float)
0:57 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:57 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
0:57 Constant:
0:57 0 (const int)
0:57 Constant:
@@ -133,8 +133,8 @@ gl_FragCoord origin is upper left
0:57 1.000000
0:57 1.000000
0:58 move second child to first child (temp float)
0:58 Depth: direct index for structure (temp float FragDepth)
0:58 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:58 Depth: direct index for structure (temp float)
0:58 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
0:58 Constant:
0:58 1 (const int)
0:58 Constant:
@@ -144,13 +144,13 @@ gl_FragCoord origin is upper left
0:60 move second child to first child (temp 4-component vector of float)
0:? 'Color' (layout(location=0 ) out 4-component vector of float)
0:60 Color: direct index for structure (temp 4-component vector of float)
0:60 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:60 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
0:60 Constant:
0:60 0 (const int)
0:60 move second child to first child (temp float)
0:? 'Depth' (out float FragDepth)
0:60 Depth: direct index for structure (temp float FragDepth)
0:60 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:60 Depth: direct index for structure (temp float)
0:60 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
0:60 Constant:
0:60 1 (const int)
0:60 Branch: Return
@@ -187,7 +187,7 @@ Linked fragment stage:
Shader version: 450
gl_FragCoord origin is upper left
0:? Sequence
0:38 Function Definition: main( (global structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:38 Function Definition: main( (global structure{temp 4-component vector of float Color, temp float Depth})
0:38 Function Parameters:
0:? Sequence
0:42 Sequence
@@ -309,7 +309,7 @@ gl_FragCoord origin is upper left
0:55 0.750000
0:57 move second child to first child (temp 4-component vector of float)
0:57 Color: direct index for structure (temp 4-component vector of float)
0:57 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:57 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
0:57 Constant:
0:57 0 (const int)
0:57 Constant:
@@ -318,8 +318,8 @@ gl_FragCoord origin is upper left
0:57 1.000000
0:57 1.000000
0:58 move second child to first child (temp float)
0:58 Depth: direct index for structure (temp float FragDepth)
0:58 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:58 Depth: direct index for structure (temp float)
0:58 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
0:58 Constant:
0:58 1 (const int)
0:58 Constant:
@@ -329,13 +329,13 @@ gl_FragCoord origin is upper left
0:60 move second child to first child (temp 4-component vector of float)
0:? 'Color' (layout(location=0 ) out 4-component vector of float)
0:60 Color: direct index for structure (temp 4-component vector of float)
0:60 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:60 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
0:60 Constant:
0:60 0 (const int)
0:60 move second child to first child (temp float)
0:? 'Depth' (out float FragDepth)
0:60 Depth: direct index for structure (temp float FragDepth)
0:60 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:60 Depth: direct index for structure (temp float)
0:60 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
0:60 Constant:
0:60 1 (const int)
0:60 Branch: Return
@@ -426,7 +426,6 @@ gl_FragCoord origin is upper left
Decorate 90(g_tTexcdf4) DescriptorSet 0
Decorate 105(g_tTexcdi4) DescriptorSet 0
Decorate 117(g_tTexcdu4) DescriptorSet 0
MemberDecorate 127(PS_OUTPUT) 1 BuiltIn FragDepth
Decorate 138(Color) Location 0
Decorate 142(Depth) BuiltIn FragDepth
Decorate 148(g_tTex3df4) DescriptorSet 0