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:
@@ -6,12 +6,12 @@ gl_FragCoord origin is upper left
|
||||
0:2 Function Parameters:
|
||||
0:8 Function Definition: MyFunc2( (global void)
|
||||
0:8 Function Parameters:
|
||||
0:18 Function Definition: main( (global structure{layout(location=0 ) temp 4-component vector of float color})
|
||||
0:18 Function Definition: main( (global structure{temp 4-component vector of float color})
|
||||
0:13 Function Parameters:
|
||||
0:? Sequence
|
||||
0:16 move second child to first child (temp 4-component vector of float)
|
||||
0:16 color: direct index for structure (layout(location=0 ) temp 4-component vector of float)
|
||||
0:16 'ps_output' (temp structure{layout(location=0 ) temp 4-component vector of float color})
|
||||
0:16 color: direct index for structure (temp 4-component vector of float)
|
||||
0:16 'ps_output' (temp structure{temp 4-component vector of float color})
|
||||
0:16 Constant:
|
||||
0:16 0 (const int)
|
||||
0:16 Constant:
|
||||
@@ -20,9 +20,9 @@ gl_FragCoord origin is upper left
|
||||
0:16 1.000000
|
||||
0:16 1.000000
|
||||
0:17 Sequence
|
||||
0:17 move second child to first child (temp structure{layout(location=0 ) temp 4-component vector of float color})
|
||||
0:? '@entryPointOutput' (out structure{layout(location=0 ) temp 4-component vector of float color})
|
||||
0:17 'ps_output' (temp structure{layout(location=0 ) temp 4-component vector of float color})
|
||||
0:17 move second child to first child (temp structure{temp 4-component vector of float color})
|
||||
0:? '@entryPointOutput' (out structure{temp 4-component vector of float color})
|
||||
0:17 'ps_output' (temp structure{temp 4-component vector of float color})
|
||||
0:17 Branch: Return
|
||||
0:? Linker Objects
|
||||
|
||||
@@ -37,12 +37,12 @@ gl_FragCoord origin is upper left
|
||||
0:2 Function Parameters:
|
||||
0:8 Function Definition: MyFunc2( (global void)
|
||||
0:8 Function Parameters:
|
||||
0:18 Function Definition: main( (global structure{layout(location=0 ) temp 4-component vector of float color})
|
||||
0:18 Function Definition: main( (global structure{temp 4-component vector of float color})
|
||||
0:13 Function Parameters:
|
||||
0:? Sequence
|
||||
0:16 move second child to first child (temp 4-component vector of float)
|
||||
0:16 color: direct index for structure (layout(location=0 ) temp 4-component vector of float)
|
||||
0:16 'ps_output' (temp structure{layout(location=0 ) temp 4-component vector of float color})
|
||||
0:16 color: direct index for structure (temp 4-component vector of float)
|
||||
0:16 'ps_output' (temp structure{temp 4-component vector of float color})
|
||||
0:16 Constant:
|
||||
0:16 0 (const int)
|
||||
0:16 Constant:
|
||||
@@ -51,9 +51,9 @@ gl_FragCoord origin is upper left
|
||||
0:16 1.000000
|
||||
0:16 1.000000
|
||||
0:17 Sequence
|
||||
0:17 move second child to first child (temp structure{layout(location=0 ) temp 4-component vector of float color})
|
||||
0:? '@entryPointOutput' (out structure{layout(location=0 ) temp 4-component vector of float color})
|
||||
0:17 'ps_output' (temp structure{layout(location=0 ) temp 4-component vector of float color})
|
||||
0:17 move second child to first child (temp structure{temp 4-component vector of float color})
|
||||
0:? '@entryPointOutput' (out structure{temp 4-component vector of float color})
|
||||
0:17 'ps_output' (temp structure{temp 4-component vector of float color})
|
||||
0:17 Branch: Return
|
||||
0:? Linker Objects
|
||||
|
||||
@@ -73,7 +73,6 @@ gl_FragCoord origin is upper left
|
||||
MemberName 12(PS_OUTPUT) 0 "color"
|
||||
Name 14 "ps_output"
|
||||
Name 22 "@entryPointOutput"
|
||||
MemberDecorate 12(PS_OUTPUT) 0 Location 0
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
10: TypeFloat 32
|
||||
|
||||
Reference in New Issue
Block a user