HLSL: Start location numbering with the entry-point return value.
Also, increment location numbers by the size of the objects.
This commit is contained in:
@@ -9,7 +9,7 @@ gl_FragCoord origin is upper left
|
||||
0:? Sequence
|
||||
0:3 Sequence
|
||||
0:3 move second child to first child (temp 4-component vector of float)
|
||||
0:? '@entryPointOutput' (out 4-component vector of float)
|
||||
0:? '@entryPointOutput' (layout(location=0 ) out 4-component vector of float)
|
||||
0:3 max (global 4-component vector of float)
|
||||
0:3 'input1' (layout(location=0 ) in 4-component vector of float)
|
||||
0:3 'input2' (layout(location=1 ) in 4-component vector of float)
|
||||
@@ -30,7 +30,7 @@ gl_FragCoord origin is upper left
|
||||
0:? Sequence
|
||||
0:3 Sequence
|
||||
0:3 move second child to first child (temp 4-component vector of float)
|
||||
0:? '@entryPointOutput' (out 4-component vector of float)
|
||||
0:? '@entryPointOutput' (layout(location=0 ) out 4-component vector of float)
|
||||
0:3 max (global 4-component vector of float)
|
||||
0:3 'input1' (layout(location=0 ) in 4-component vector of float)
|
||||
0:3 'input2' (layout(location=1 ) in 4-component vector of float)
|
||||
@@ -50,6 +50,7 @@ gl_FragCoord origin is upper left
|
||||
Name 9 "@entryPointOutput"
|
||||
Name 11 "input1"
|
||||
Name 13 "input2"
|
||||
Decorate 9(@entryPointOutput) Location 0
|
||||
Decorate 11(input1) Location 0
|
||||
Decorate 13(input2) Location 1
|
||||
2: TypeVoid
|
||||
|
||||
Reference in New Issue
Block a user