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.load.buffer.dx10.frag
|
||||
Shader version: 450
|
||||
gl_FragCoord origin is upper left
|
||||
0:? Sequence
|
||||
0:24 Function Definition: main( (global structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:24 Function Definition: main( (global structure{temp 4-component vector of float Color, temp float Depth})
|
||||
0:24 Function Parameters:
|
||||
0:? Sequence
|
||||
0:28 Sequence
|
||||
@@ -25,7 +25,7 @@ gl_FragCoord origin is upper left
|
||||
0:30 'c1' (uniform int)
|
||||
0:34 move second child to first child (temp 4-component vector of float)
|
||||
0:34 Color: direct index for structure (temp 4-component vector of float)
|
||||
0:34 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:34 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
|
||||
0:34 Constant:
|
||||
0:34 0 (const int)
|
||||
0:34 Constant:
|
||||
@@ -34,8 +34,8 @@ gl_FragCoord origin is upper left
|
||||
0:34 1.000000
|
||||
0:34 1.000000
|
||||
0:35 move second child to first child (temp float)
|
||||
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 Constant:
|
||||
@@ -45,13 +45,13 @@ gl_FragCoord origin is upper left
|
||||
0:37 move second child to first child (temp 4-component vector of float)
|
||||
0:? 'Color' (layout(location=0 ) out 4-component vector of float)
|
||||
0:37 Color: direct index for structure (temp 4-component vector of float)
|
||||
0:37 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:37 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
|
||||
0:37 Constant:
|
||||
0:37 0 (const int)
|
||||
0:37 move second child to first child (temp float)
|
||||
0:? 'Depth' (out float FragDepth)
|
||||
0:37 Depth: direct index for structure (temp float FragDepth)
|
||||
0:37 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:37 Depth: direct index for structure (temp float)
|
||||
0:37 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
|
||||
0:37 Constant:
|
||||
0:37 1 (const int)
|
||||
0:37 Branch: Return
|
||||
@@ -78,7 +78,7 @@ Linked fragment stage:
|
||||
Shader version: 450
|
||||
gl_FragCoord origin is upper left
|
||||
0:? Sequence
|
||||
0:24 Function Definition: main( (global structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:24 Function Definition: main( (global structure{temp 4-component vector of float Color, temp float Depth})
|
||||
0:24 Function Parameters:
|
||||
0:? Sequence
|
||||
0:28 Sequence
|
||||
@@ -101,7 +101,7 @@ gl_FragCoord origin is upper left
|
||||
0:30 'c1' (uniform int)
|
||||
0:34 move second child to first child (temp 4-component vector of float)
|
||||
0:34 Color: direct index for structure (temp 4-component vector of float)
|
||||
0:34 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:34 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
|
||||
0:34 Constant:
|
||||
0:34 0 (const int)
|
||||
0:34 Constant:
|
||||
@@ -110,8 +110,8 @@ gl_FragCoord origin is upper left
|
||||
0:34 1.000000
|
||||
0:34 1.000000
|
||||
0:35 move second child to first child (temp float)
|
||||
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 Constant:
|
||||
@@ -121,13 +121,13 @@ gl_FragCoord origin is upper left
|
||||
0:37 move second child to first child (temp 4-component vector of float)
|
||||
0:? 'Color' (layout(location=0 ) out 4-component vector of float)
|
||||
0:37 Color: direct index for structure (temp 4-component vector of float)
|
||||
0:37 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:37 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
|
||||
0:37 Constant:
|
||||
0:37 0 (const int)
|
||||
0:37 move second child to first child (temp float)
|
||||
0:? 'Depth' (out float FragDepth)
|
||||
0:37 Depth: direct index for structure (temp float FragDepth)
|
||||
0:37 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:37 Depth: direct index for structure (temp float)
|
||||
0:37 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
|
||||
0:37 Constant:
|
||||
0:37 1 (const int)
|
||||
0:37 Branch: Return
|
||||
@@ -182,7 +182,6 @@ gl_FragCoord origin is upper left
|
||||
Decorate 13(g_tTexbf4) DescriptorSet 0
|
||||
Decorate 27(g_tTexbi4) DescriptorSet 0
|
||||
Decorate 39(g_tTexbu4) DescriptorSet 0
|
||||
MemberDecorate 44(PS_OUTPUT) 1 BuiltIn FragDepth
|
||||
Decorate 55(Color) Location 0
|
||||
Decorate 59(Depth) BuiltIn FragDepth
|
||||
Decorate 63(g_tTexbf4_test) DescriptorSet 0
|
||||
|
||||
Reference in New Issue
Block a user