HLSL: Remove recent change to put locations on SV_TARGET*.
This put locations on members of structures, which is not allowed in either AST or SPIR-V. This was caught by asserts in the debug build.
This commit is contained in:
@@ -2,7 +2,7 @@ hlsl.samplecmplevelzero.offset.dx10.frag
|
||||
Shader version: 450
|
||||
gl_FragCoord origin is upper left
|
||||
0:? Sequence
|
||||
0:67 Function Definition: main( (global structure{layout(location=0 ) temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:67 Function Definition: main( (global structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:38 Function Parameters:
|
||||
0:? Sequence
|
||||
0:42 Sequence
|
||||
@@ -108,8 +108,8 @@ gl_FragCoord origin is upper left
|
||||
0:? 2 (const int)
|
||||
0:? 3 (const int)
|
||||
0:62 move second child to first child (temp 4-component vector of float)
|
||||
0:62 Color: direct index for structure (layout(location=0 ) temp 4-component vector of float)
|
||||
0:62 'psout' (temp structure{layout(location=0 ) temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:62 Color: direct index for structure (temp 4-component vector of float)
|
||||
0:62 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:62 Constant:
|
||||
0:62 0 (const int)
|
||||
0:62 Constant:
|
||||
@@ -119,15 +119,15 @@ gl_FragCoord origin is upper left
|
||||
0:62 1.000000
|
||||
0:63 move second child to first child (temp float)
|
||||
0:63 Depth: direct index for structure (temp float FragDepth)
|
||||
0:63 'psout' (temp structure{layout(location=0 ) temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:63 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:63 Constant:
|
||||
0:63 1 (const int)
|
||||
0:63 Constant:
|
||||
0:63 1.000000
|
||||
0:65 Sequence
|
||||
0:65 move second child to first child (temp structure{layout(location=0 ) temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:? '@entryPointOutput' (out structure{layout(location=0 ) temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:65 'psout' (temp structure{layout(location=0 ) temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:65 move second child to first child (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:? '@entryPointOutput' (out structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:65 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:65 Branch: Return
|
||||
0:? Linker Objects
|
||||
0:? 'g_sSamp' (layout(binding=0 ) uniform sampler)
|
||||
@@ -160,7 +160,7 @@ Linked fragment stage:
|
||||
Shader version: 450
|
||||
gl_FragCoord origin is upper left
|
||||
0:? Sequence
|
||||
0:67 Function Definition: main( (global structure{layout(location=0 ) temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:67 Function Definition: main( (global structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:38 Function Parameters:
|
||||
0:? Sequence
|
||||
0:42 Sequence
|
||||
@@ -266,8 +266,8 @@ gl_FragCoord origin is upper left
|
||||
0:? 2 (const int)
|
||||
0:? 3 (const int)
|
||||
0:62 move second child to first child (temp 4-component vector of float)
|
||||
0:62 Color: direct index for structure (layout(location=0 ) temp 4-component vector of float)
|
||||
0:62 'psout' (temp structure{layout(location=0 ) temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:62 Color: direct index for structure (temp 4-component vector of float)
|
||||
0:62 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:62 Constant:
|
||||
0:62 0 (const int)
|
||||
0:62 Constant:
|
||||
@@ -277,15 +277,15 @@ gl_FragCoord origin is upper left
|
||||
0:62 1.000000
|
||||
0:63 move second child to first child (temp float)
|
||||
0:63 Depth: direct index for structure (temp float FragDepth)
|
||||
0:63 'psout' (temp structure{layout(location=0 ) temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:63 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:63 Constant:
|
||||
0:63 1 (const int)
|
||||
0:63 Constant:
|
||||
0:63 1.000000
|
||||
0:65 Sequence
|
||||
0:65 move second child to first child (temp structure{layout(location=0 ) temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:? '@entryPointOutput' (out structure{layout(location=0 ) temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:65 'psout' (temp structure{layout(location=0 ) temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:65 move second child to first child (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:? '@entryPointOutput' (out structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:65 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:65 Branch: Return
|
||||
0:? Linker Objects
|
||||
0:? 'g_sSamp' (layout(binding=0 ) uniform sampler)
|
||||
@@ -365,7 +365,6 @@ gl_FragCoord origin is upper left
|
||||
Decorate 53(g_tTex2df4) DescriptorSet 0
|
||||
Decorate 71(g_tTex2di4) DescriptorSet 0
|
||||
Decorate 83(g_tTex2du4) DescriptorSet 0
|
||||
MemberDecorate 93(PS_OUTPUT) 0 Location 0
|
||||
MemberDecorate 93(PS_OUTPUT) 1 BuiltIn FragDepth
|
||||
Decorate 109(g_tTex3df4) DescriptorSet 0
|
||||
Decorate 112(g_tTex3di4) DescriptorSet 0
|
||||
|
||||
Reference in New Issue
Block a user