HLSL: Allow use of $Global members in between function calls.

This allows global initializers to use $Global members.
This commit is contained in:
John Kessenich
2017-03-22 23:21:34 -06:00
parent 7a41f96d10
commit 000c818efb
53 changed files with 4566 additions and 4558 deletions

View File

@@ -11,8 +11,8 @@ gl_FragCoord origin is upper left
0:6 Constant:
0:6 255.001953
0:6 vector swizzle ( temp 4-component vector of float)
0:6 col4: direct index for structure (layout( offset=0) uniform 4-component vector of float)
0:6 'anon@0' (layout( row_major std140) uniform block{layout( offset=0) uniform 4-component vector of float col4})
0:6 col4: direct index for structure ( uniform 4-component vector of float)
0:6 'anon@0' (layout( row_major std140) uniform block{ uniform 4-component vector of float col4})
0:6 Constant:
0:6 0 (const uint)
0:6 Sequence
@@ -31,8 +31,8 @@ gl_FragCoord origin is upper left
0:? '@entryPointOutput' (layout( location=0) out 4-component vector of int)
0:5 Function Call: @main( ( temp 4-component vector of int)
0:? Linker Objects
0:? 'anon@0' (layout( row_major std140) uniform block{ uniform 4-component vector of float col4})
0:? '@entryPointOutput' (layout( location=0) out 4-component vector of int)
0:? 'anon@0' (layout( row_major std140) uniform block{layout( offset=0) uniform 4-component vector of float col4})
Linked fragment stage:
@@ -50,8 +50,8 @@ gl_FragCoord origin is upper left
0:6 Constant:
0:6 255.001953
0:6 vector swizzle ( temp 4-component vector of float)
0:6 col4: direct index for structure (layout( offset=0) uniform 4-component vector of float)
0:6 'anon@0' (layout( row_major std140) uniform block{layout( offset=0) uniform 4-component vector of float col4})
0:6 col4: direct index for structure ( uniform 4-component vector of float)
0:6 'anon@0' (layout( row_major std140) uniform block{ uniform 4-component vector of float col4})
0:6 Constant:
0:6 0 (const uint)
0:6 Sequence
@@ -70,8 +70,8 @@ gl_FragCoord origin is upper left
0:? '@entryPointOutput' (layout( location=0) out 4-component vector of int)
0:5 Function Call: @main( ( temp 4-component vector of int)
0:? Linker Objects
0:? 'anon@0' (layout( row_major std140) uniform block{ uniform 4-component vector of float col4})
0:? '@entryPointOutput' (layout( location=0) out 4-component vector of int)
0:? 'anon@0' (layout( row_major std140) uniform block{layout( offset=0) uniform 4-component vector of float col4})
// Module Version 10000
// Generated by (magic number): 80001