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

@@ -14,11 +14,11 @@ gl_FragCoord origin is upper left
0:14 Constant:
0:14 2 (const int)
0:14 Construct vec4 ( temp 4-component vector of float)
0:14 direct index (layout( offset=0) temp float)
0:14 direct index (layout( offset=0) temp 3-element array of float)
0:14 direct index (layout( offset=0) temp 4-element array of 3-element array of float)
0:14 float_array: direct index for structure (layout( offset=0) uniform 5-element array of 4-element array of 3-element array of float)
0:14 'anon@0' (layout( row_major std140) uniform block{layout( offset=0) uniform 5-element array of 4-element array of 3-element array of float float_array})
0:14 direct index ( temp float)
0:14 direct index ( temp 3-element array of float)
0:14 direct index ( temp 4-element array of 3-element array of float)
0:14 float_array: direct index for structure ( uniform 5-element array of 4-element array of 3-element array of float)
0:14 'anon@0' (layout( row_major std140) uniform block{ uniform 5-element array of 4-element array of 3-element array of float float_array})
0:14 Constant:
0:14 0 (const uint)
0:14 Constant:
@@ -61,8 +61,8 @@ gl_FragCoord origin is upper left
0:10 Constant:
0:10 0 (const int)
0:? Linker Objects
0:? 'anon@0' (layout( row_major std140) uniform block{ uniform 5-element array of 4-element array of 3-element array of float float_array})
0:? 'Color' (layout( location=0) out 4-component vector of float)
0:? 'anon@0' (layout( row_major std140) uniform block{layout( offset=0) uniform 5-element array of 4-element array of 3-element array of float float_array})
Linked fragment stage:
@@ -83,11 +83,11 @@ gl_FragCoord origin is upper left
0:14 Constant:
0:14 2 (const int)
0:14 Construct vec4 ( temp 4-component vector of float)
0:14 direct index (layout( offset=0) temp float)
0:14 direct index (layout( offset=0) temp 3-element array of float)
0:14 direct index (layout( offset=0) temp 4-element array of 3-element array of float)
0:14 float_array: direct index for structure (layout( offset=0) uniform 5-element array of 4-element array of 3-element array of float)
0:14 'anon@0' (layout( row_major std140) uniform block{layout( offset=0) uniform 5-element array of 4-element array of 3-element array of float float_array})
0:14 direct index ( temp float)
0:14 direct index ( temp 3-element array of float)
0:14 direct index ( temp 4-element array of 3-element array of float)
0:14 float_array: direct index for structure ( uniform 5-element array of 4-element array of 3-element array of float)
0:14 'anon@0' (layout( row_major std140) uniform block{ uniform 5-element array of 4-element array of 3-element array of float float_array})
0:14 Constant:
0:14 0 (const uint)
0:14 Constant:
@@ -130,8 +130,8 @@ gl_FragCoord origin is upper left
0:10 Constant:
0:10 0 (const int)
0:? Linker Objects
0:? 'anon@0' (layout( row_major std140) uniform block{ uniform 5-element array of 4-element array of 3-element array of float float_array})
0:? 'Color' (layout( location=0) out 4-component vector of float)
0:? 'anon@0' (layout( row_major std140) uniform block{layout( offset=0) uniform 5-element array of 4-element array of 3-element array of float float_array})
// Module Version 10000
// Generated by (magic number): 80001