HLSL: Remove extraneous built-in member decorations for IO structs used in non-IO situations.
This commit is contained in:
@@ -2,7 +2,7 @@ hlsl.gather.offsetarray.dx10.frag
|
||||
Shader version: 450
|
||||
gl_FragCoord origin is upper left
|
||||
0:? Sequence
|
||||
0:20 Function Definition: main( (global structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:20 Function Definition: main( (global structure{temp 4-component vector of float Color, temp float Depth})
|
||||
0:20 Function Parameters:
|
||||
0:? Sequence
|
||||
0:25 Sequence
|
||||
@@ -49,7 +49,7 @@ gl_FragCoord origin is upper left
|
||||
0:? -1 (const int)
|
||||
0:32 move second child to first child (temp 4-component vector of float)
|
||||
0:32 Color: direct index for structure (temp 4-component vector of float)
|
||||
0:32 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:32 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
|
||||
0:32 Constant:
|
||||
0:32 0 (const int)
|
||||
0:32 Constant:
|
||||
@@ -58,8 +58,8 @@ gl_FragCoord origin is upper left
|
||||
0:32 1.000000
|
||||
0:32 1.000000
|
||||
0:33 move second child to first child (temp float)
|
||||
0:33 Depth: direct index for structure (temp float FragDepth)
|
||||
0:33 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:33 Depth: direct index for structure (temp float)
|
||||
0:33 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
|
||||
0:33 Constant:
|
||||
0:33 1 (const int)
|
||||
0:33 Constant:
|
||||
@@ -69,13 +69,13 @@ gl_FragCoord origin is upper left
|
||||
0:35 move second child to first child (temp 4-component vector of float)
|
||||
0:? 'Color' (layout(location=0 ) out 4-component vector of float)
|
||||
0:35 Color: direct index for structure (temp 4-component vector of float)
|
||||
0:35 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:35 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
|
||||
0:35 Constant:
|
||||
0:35 0 (const int)
|
||||
0:35 move second child to first child (temp float)
|
||||
0:? 'Depth' (out float FragDepth)
|
||||
0:35 Depth: direct index for structure (temp float FragDepth)
|
||||
0:35 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:35 Depth: direct index for structure (temp float)
|
||||
0:35 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
|
||||
0:35 Constant:
|
||||
0:35 1 (const int)
|
||||
0:35 Branch: Return
|
||||
@@ -98,7 +98,7 @@ Linked fragment stage:
|
||||
Shader version: 450
|
||||
gl_FragCoord origin is upper left
|
||||
0:? Sequence
|
||||
0:20 Function Definition: main( (global structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:20 Function Definition: main( (global structure{temp 4-component vector of float Color, temp float Depth})
|
||||
0:20 Function Parameters:
|
||||
0:? Sequence
|
||||
0:25 Sequence
|
||||
@@ -145,7 +145,7 @@ gl_FragCoord origin is upper left
|
||||
0:? -1 (const int)
|
||||
0:32 move second child to first child (temp 4-component vector of float)
|
||||
0:32 Color: direct index for structure (temp 4-component vector of float)
|
||||
0:32 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:32 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
|
||||
0:32 Constant:
|
||||
0:32 0 (const int)
|
||||
0:32 Constant:
|
||||
@@ -154,8 +154,8 @@ gl_FragCoord origin is upper left
|
||||
0:32 1.000000
|
||||
0:32 1.000000
|
||||
0:33 move second child to first child (temp float)
|
||||
0:33 Depth: direct index for structure (temp float FragDepth)
|
||||
0:33 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:33 Depth: direct index for structure (temp float)
|
||||
0:33 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
|
||||
0:33 Constant:
|
||||
0:33 1 (const int)
|
||||
0:33 Constant:
|
||||
@@ -165,13 +165,13 @@ gl_FragCoord origin is upper left
|
||||
0:35 move second child to first child (temp 4-component vector of float)
|
||||
0:? 'Color' (layout(location=0 ) out 4-component vector of float)
|
||||
0:35 Color: direct index for structure (temp 4-component vector of float)
|
||||
0:35 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:35 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
|
||||
0:35 Constant:
|
||||
0:35 0 (const int)
|
||||
0:35 move second child to first child (temp float)
|
||||
0:? 'Depth' (out float FragDepth)
|
||||
0:35 Depth: direct index for structure (temp float FragDepth)
|
||||
0:35 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:35 Depth: direct index for structure (temp float)
|
||||
0:35 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
|
||||
0:35 Constant:
|
||||
0:35 1 (const int)
|
||||
0:35 Branch: Return
|
||||
@@ -220,7 +220,6 @@ gl_FragCoord origin is upper left
|
||||
Decorate 16(g_sSamp) Binding 0
|
||||
Decorate 36(g_tTex2di4) DescriptorSet 0
|
||||
Decorate 51(g_tTex2du4) DescriptorSet 0
|
||||
MemberDecorate 63(PS_OUTPUT) 1 BuiltIn FragDepth
|
||||
Decorate 72(Color) Location 0
|
||||
Decorate 76(Depth) BuiltIn FragDepth
|
||||
Decorate 82(g_tTex1df4a) DescriptorSet 0
|
||||
|
||||
Reference in New Issue
Block a user