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:
John Kessenich
2016-08-29 18:10:47 -06:00
parent a05d8b5604
commit 830b0cc98b
89 changed files with 2517 additions and 2157 deletions

View File

@@ -13,7 +13,7 @@ local_size = (1, 1, 1)
0:9 WorkgroupMemoryBarrierWithGroupSync (global void)
0:11 Sequence
0:11 move second child to first child (temp float)
0:? '@entryPointOutput' (out float)
0:? '@entryPointOutput' (layout(location=0 ) out float)
0:11 Constant:
0:11 0.000000
0:11 Branch: Return
@@ -37,7 +37,7 @@ local_size = (1, 1, 1)
0:9 WorkgroupMemoryBarrierWithGroupSync (global void)
0:11 Sequence
0:11 move second child to first child (temp float)
0:? '@entryPointOutput' (out float)
0:? '@entryPointOutput' (layout(location=0 ) out float)
0:11 Constant:
0:11 0.000000
0:11 Branch: Return
@@ -54,6 +54,7 @@ local_size = (1, 1, 1)
ExecutionMode 4 LocalSize 1 1 1
Name 4 "ComputeShaderFunction"
Name 14 "@entryPointOutput"
Decorate 14(@entryPointOutput) Location 0
2: TypeVoid
3: TypeFunction 2
6: TypeInt 32 0