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,9 +9,9 @@ gl_FragCoord origin is upper left
|
||||
0:5 'inDV1c' (layout(location=2 ) in double)
|
||||
0:5 'inDV2' (layout(location=3 ) in 2-component vector of double)
|
||||
0:5 'inDV3' (layout(location=4 ) in 3-component vector of double)
|
||||
0:5 'inDV4' (layout(location=5 ) in 4-component vector of double)
|
||||
0:5 'inU1a' (layout(location=6 ) in uint)
|
||||
0:5 'inU1b' (layout(location=7 ) in uint)
|
||||
0:5 'inDV4' (layout(location=6 ) in 4-component vector of double)
|
||||
0:5 'inU1a' (layout(location=8 ) in uint)
|
||||
0:5 'inU1b' (layout(location=9 ) in uint)
|
||||
0:? Sequence
|
||||
0:6 Sequence
|
||||
0:6 move second child to first child (temp double)
|
||||
@@ -25,11 +25,11 @@ gl_FragCoord origin is upper left
|
||||
0:7 'r01' (temp double)
|
||||
0:7 uint64BitsToDouble (temp double)
|
||||
0:7 Construct uvec2 (temp 2-component vector of uint)
|
||||
0:7 'inU1a' (layout(location=6 ) in uint)
|
||||
0:7 'inU1b' (layout(location=7 ) in uint)
|
||||
0:7 'inU1a' (layout(location=8 ) in uint)
|
||||
0:7 'inU1b' (layout(location=9 ) in uint)
|
||||
0:9 Sequence
|
||||
0:9 move second child to first child (temp float)
|
||||
0:? '@entryPointOutput' (out float)
|
||||
0:? '@entryPointOutput' (layout(location=0 ) out float)
|
||||
0:9 Constant:
|
||||
0:9 0.000000
|
||||
0:9 Branch: Return
|
||||
@@ -49,9 +49,9 @@ gl_FragCoord origin is upper left
|
||||
0:5 'inDV1c' (layout(location=2 ) in double)
|
||||
0:5 'inDV2' (layout(location=3 ) in 2-component vector of double)
|
||||
0:5 'inDV3' (layout(location=4 ) in 3-component vector of double)
|
||||
0:5 'inDV4' (layout(location=5 ) in 4-component vector of double)
|
||||
0:5 'inU1a' (layout(location=6 ) in uint)
|
||||
0:5 'inU1b' (layout(location=7 ) in uint)
|
||||
0:5 'inDV4' (layout(location=6 ) in 4-component vector of double)
|
||||
0:5 'inU1a' (layout(location=8 ) in uint)
|
||||
0:5 'inU1b' (layout(location=9 ) in uint)
|
||||
0:? Sequence
|
||||
0:6 Sequence
|
||||
0:6 move second child to first child (temp double)
|
||||
@@ -65,11 +65,11 @@ gl_FragCoord origin is upper left
|
||||
0:7 'r01' (temp double)
|
||||
0:7 uint64BitsToDouble (temp double)
|
||||
0:7 Construct uvec2 (temp 2-component vector of uint)
|
||||
0:7 'inU1a' (layout(location=6 ) in uint)
|
||||
0:7 'inU1b' (layout(location=7 ) in uint)
|
||||
0:7 'inU1a' (layout(location=8 ) in uint)
|
||||
0:7 'inU1b' (layout(location=9 ) in uint)
|
||||
0:9 Sequence
|
||||
0:9 move second child to first child (temp float)
|
||||
0:? '@entryPointOutput' (out float)
|
||||
0:? '@entryPointOutput' (layout(location=0 ) out float)
|
||||
0:9 Constant:
|
||||
0:9 0.000000
|
||||
0:9 Branch: Return
|
||||
@@ -97,8 +97,9 @@ gl_FragCoord origin is upper left
|
||||
Decorate 10(inDV1a) Location 0
|
||||
Decorate 12(inDV1b) Location 1
|
||||
Decorate 14(inDV1c) Location 2
|
||||
Decorate 20(inU1a) Location 6
|
||||
Decorate 22(inU1b) Location 7
|
||||
Decorate 20(inU1a) Location 8
|
||||
Decorate 22(inU1b) Location 9
|
||||
Decorate 29(@entryPointOutput) Location 0
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
6: TypeFloat 64
|
||||
|
||||
Reference in New Issue
Block a user