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.samplegrad.offset.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
|
||||
@@ -178,7 +178,7 @@ gl_FragCoord origin is upper left
|
||||
0:? -1 (const int)
|
||||
0:45 move second child to first child (temp 4-component vector of float)
|
||||
0:45 Color: direct index for structure (temp 4-component vector of float)
|
||||
0:45 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:45 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
|
||||
0:45 Constant:
|
||||
0:45 0 (const int)
|
||||
0:45 Constant:
|
||||
@@ -187,8 +187,8 @@ gl_FragCoord origin is upper left
|
||||
0:45 1.000000
|
||||
0:45 1.000000
|
||||
0:46 move second child to first child (temp float)
|
||||
0:46 Depth: direct index for structure (temp float FragDepth)
|
||||
0:46 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:46 Depth: direct index for structure (temp float)
|
||||
0:46 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
|
||||
0:46 Constant:
|
||||
0:46 1 (const int)
|
||||
0:46 Constant:
|
||||
@@ -198,13 +198,13 @@ gl_FragCoord origin is upper left
|
||||
0:48 move second child to first child (temp 4-component vector of float)
|
||||
0:? 'Color' (layout(location=0 ) out 4-component vector of float)
|
||||
0:48 Color: direct index for structure (temp 4-component vector of float)
|
||||
0:48 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:48 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
|
||||
0:48 Constant:
|
||||
0:48 0 (const int)
|
||||
0:48 move second child to first child (temp float)
|
||||
0:? 'Depth' (out float FragDepth)
|
||||
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 Branch: Return
|
||||
@@ -233,7 +233,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
|
||||
@@ -409,7 +409,7 @@ gl_FragCoord origin is upper left
|
||||
0:? -1 (const int)
|
||||
0:45 move second child to first child (temp 4-component vector of float)
|
||||
0:45 Color: direct index for structure (temp 4-component vector of float)
|
||||
0:45 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:45 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
|
||||
0:45 Constant:
|
||||
0:45 0 (const int)
|
||||
0:45 Constant:
|
||||
@@ -418,8 +418,8 @@ gl_FragCoord origin is upper left
|
||||
0:45 1.000000
|
||||
0:45 1.000000
|
||||
0:46 move second child to first child (temp float)
|
||||
0:46 Depth: direct index for structure (temp float FragDepth)
|
||||
0:46 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:46 Depth: direct index for structure (temp float)
|
||||
0:46 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
|
||||
0:46 Constant:
|
||||
0:46 1 (const int)
|
||||
0:46 Constant:
|
||||
@@ -429,13 +429,13 @@ gl_FragCoord origin is upper left
|
||||
0:48 move second child to first child (temp 4-component vector of float)
|
||||
0:? 'Color' (layout(location=0 ) out 4-component vector of float)
|
||||
0:48 Color: direct index for structure (temp 4-component vector of float)
|
||||
0:48 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:48 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
|
||||
0:48 Constant:
|
||||
0:48 0 (const int)
|
||||
0:48 move second child to first child (temp float)
|
||||
0:? 'Depth' (out float FragDepth)
|
||||
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 Branch: Return
|
||||
@@ -509,7 +509,6 @@ gl_FragCoord origin is upper left
|
||||
Decorate 95(g_tTex3df4) DescriptorSet 0
|
||||
Decorate 110(g_tTex3di4) DescriptorSet 0
|
||||
Decorate 121(g_tTex3du4) DescriptorSet 0
|
||||
MemberDecorate 132(PS_OUTPUT) 1 BuiltIn FragDepth
|
||||
Decorate 141(Color) Location 0
|
||||
Decorate 145(Depth) BuiltIn FragDepth
|
||||
Decorate 149(g_tTex1df4a) DescriptorSet 0
|
||||
|
||||
Reference in New Issue
Block a user