HLSL: Allow use of $Global members in between function calls.
This allows global initializers to use $Global members.
This commit is contained in:
@@ -14,8 +14,8 @@ local_size = (4, 6, 8)
|
||||
0:11 Loop Condition
|
||||
0:11 Compare Less Than ( temp bool)
|
||||
0:11 'x' ( temp int)
|
||||
0:11 bound: direct index for structure (layout( offset=0) uniform int)
|
||||
0:11 'anon@0' (layout( row_major std140) uniform block{layout( offset=0) uniform int bound})
|
||||
0:11 bound: direct index for structure ( uniform int)
|
||||
0:11 'anon@0' (layout( row_major std140) uniform block{ uniform int bound})
|
||||
0:11 Constant:
|
||||
0:11 0 (const uint)
|
||||
0:11 No loop body
|
||||
@@ -35,8 +35,8 @@ local_size = (4, 6, 8)
|
||||
0:? '@entryPointOutput' (layout( location=0) out 4-component vector of float)
|
||||
0:9 Function Call: @main( ( temp 4-component vector of float)
|
||||
0:? Linker Objects
|
||||
0:? 'anon@0' (layout( row_major std140) uniform block{ uniform int bound})
|
||||
0:? '@entryPointOutput' (layout( location=0) out 4-component vector of float)
|
||||
0:? 'anon@0' (layout( row_major std140) uniform block{layout( offset=0) uniform int bound})
|
||||
|
||||
|
||||
Linked compute stage:
|
||||
@@ -57,8 +57,8 @@ local_size = (4, 6, 8)
|
||||
0:11 Loop Condition
|
||||
0:11 Compare Less Than ( temp bool)
|
||||
0:11 'x' ( temp int)
|
||||
0:11 bound: direct index for structure (layout( offset=0) uniform int)
|
||||
0:11 'anon@0' (layout( row_major std140) uniform block{layout( offset=0) uniform int bound})
|
||||
0:11 bound: direct index for structure ( uniform int)
|
||||
0:11 'anon@0' (layout( row_major std140) uniform block{ uniform int bound})
|
||||
0:11 Constant:
|
||||
0:11 0 (const uint)
|
||||
0:11 No loop body
|
||||
@@ -78,8 +78,8 @@ local_size = (4, 6, 8)
|
||||
0:? '@entryPointOutput' (layout( location=0) out 4-component vector of float)
|
||||
0:9 Function Call: @main( ( temp 4-component vector of float)
|
||||
0:? Linker Objects
|
||||
0:? 'anon@0' (layout( row_major std140) uniform block{ uniform int bound})
|
||||
0:? '@entryPointOutput' (layout( location=0) out 4-component vector of float)
|
||||
0:? 'anon@0' (layout( row_major std140) uniform block{layout( offset=0) uniform int bound})
|
||||
|
||||
// Module Version 10000
|
||||
// Generated by (magic number): 80001
|
||||
|
||||
Reference in New Issue
Block a user