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:
parent
a05d8b5604
commit
830b0cc98b
89 changed files with 2517 additions and 2157 deletions
|
|
@ -11,7 +11,7 @@ gl_FragCoord origin is upper left
|
|||
0:? Sequence
|
||||
0:8 Sequence
|
||||
0:8 move second child to first child (temp int)
|
||||
0:? '@entryPointOutput' (out int)
|
||||
0:? '@entryPointOutput' (layout(location=0 ) out int)
|
||||
0:8 add (temp int)
|
||||
0:8 left-shift (temp int)
|
||||
0:8 add (temp int)
|
||||
|
|
@ -46,7 +46,7 @@ gl_FragCoord origin is upper left
|
|||
0:? Sequence
|
||||
0:8 Sequence
|
||||
0:8 move second child to first child (temp int)
|
||||
0:? '@entryPointOutput' (out int)
|
||||
0:? '@entryPointOutput' (layout(location=0 ) out int)
|
||||
0:8 add (temp int)
|
||||
0:8 left-shift (temp int)
|
||||
0:8 add (temp int)
|
||||
|
|
@ -80,6 +80,7 @@ gl_FragCoord origin is upper left
|
|||
Name 12 "a2"
|
||||
Name 15 "a3"
|
||||
Name 18 "a4"
|
||||
Decorate 8(@entryPointOutput) Location 0
|
||||
Decorate 10(a1) Location 0
|
||||
Decorate 12(a2) Location 1
|
||||
Decorate 15(a3) Location 2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue