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:
parent
510d83b384
commit
a05d8b5604
56 changed files with 712 additions and 764 deletions
|
|
@ -14,7 +14,7 @@ ERROR: 9 compilation errors. No code generated.
|
|||
Shader version: 450
|
||||
gl_FragCoord origin is upper left
|
||||
ERROR: node is still EOpNull!
|
||||
0:45 Function Definition: main( (global structure{layout(location=0 ) temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:45 Function Definition: main( (global structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:24 Function Parameters:
|
||||
0:? Sequence
|
||||
0:28 Sequence
|
||||
|
|
@ -135,8 +135,8 @@ ERROR: node is still EOpNull!
|
|||
0:38 Constant:
|
||||
0:38 0 (const int)
|
||||
0:40 move second child to first child (temp 4-component vector of float)
|
||||
0:40 Color: direct index for structure (layout(location=0 ) temp 4-component vector of float)
|
||||
0:40 'psout' (temp structure{layout(location=0 ) temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:40 Color: direct index for structure (temp 4-component vector of float)
|
||||
0:40 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:40 Constant:
|
||||
0:40 0 (const int)
|
||||
0:40 Constant:
|
||||
|
|
@ -146,15 +146,15 @@ ERROR: node is still EOpNull!
|
|||
0:40 1.000000
|
||||
0:41 move second child to first child (temp float)
|
||||
0:41 Depth: direct index for structure (temp float FragDepth)
|
||||
0:41 'psout' (temp structure{layout(location=0 ) temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:41 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:41 Constant:
|
||||
0:41 1 (const int)
|
||||
0:41 Constant:
|
||||
0:41 1.000000
|
||||
0:43 Sequence
|
||||
0:43 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:43 'psout' (temp structure{layout(location=0 ) temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:43 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:43 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:43 Branch: Return
|
||||
0:? Linker Objects
|
||||
0:? 'g_sSamp' (layout(binding=0 ) uniform sampler)
|
||||
|
|
@ -176,7 +176,7 @@ Linked fragment stage:
|
|||
Shader version: 450
|
||||
gl_FragCoord origin is upper left
|
||||
ERROR: node is still EOpNull!
|
||||
0:45 Function Definition: main( (global structure{layout(location=0 ) temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:45 Function Definition: main( (global structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:24 Function Parameters:
|
||||
0:? Sequence
|
||||
0:28 Sequence
|
||||
|
|
@ -297,8 +297,8 @@ ERROR: node is still EOpNull!
|
|||
0:38 Constant:
|
||||
0:38 0 (const int)
|
||||
0:40 move second child to first child (temp 4-component vector of float)
|
||||
0:40 Color: direct index for structure (layout(location=0 ) temp 4-component vector of float)
|
||||
0:40 'psout' (temp structure{layout(location=0 ) temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:40 Color: direct index for structure (temp 4-component vector of float)
|
||||
0:40 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:40 Constant:
|
||||
0:40 0 (const int)
|
||||
0:40 Constant:
|
||||
|
|
@ -308,15 +308,15 @@ ERROR: node is still EOpNull!
|
|||
0:40 1.000000
|
||||
0:41 move second child to first child (temp float)
|
||||
0:41 Depth: direct index for structure (temp float FragDepth)
|
||||
0:41 'psout' (temp structure{layout(location=0 ) temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:41 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:41 Constant:
|
||||
0:41 1 (const int)
|
||||
0:41 Constant:
|
||||
0:41 1.000000
|
||||
0:43 Sequence
|
||||
0:43 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:43 'psout' (temp structure{layout(location=0 ) temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:43 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:43 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:43 Branch: Return
|
||||
0:? Linker Objects
|
||||
0:? 'g_sSamp' (layout(binding=0 ) uniform sampler)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue