HLSL: Implement packoffset production.

This commit is contained in:
John Kessenich
2016-07-29 13:03:05 -06:00
parent 1936eebe04
commit 82d6baf86f
8 changed files with 147 additions and 77 deletions

View File

@@ -21,9 +21,9 @@ gl_FragCoord origin is upper left
0:? Linker Objects
0:? 'AmbientColor' (global 4-component vector of float)
0:? 'ff1' (global bool Face)
0:? 'ff2' (global 4-component vector of float)
0:? 'ff3' (global 4-component vector of float)
0:? 'ff4' (global 4-component vector of float FragCoord)
0:? 'ff2' (layout(offset=4 ) global 4-component vector of float)
0:? 'ff3' (layout(offset=4 ) global 4-component vector of float)
0:? 'ff4' (layout(offset=4 ) global 4-component vector of float FragCoord)
Linked fragment stage:
@@ -51,9 +51,9 @@ gl_FragCoord origin is upper left
0:? Linker Objects
0:? 'AmbientColor' (global 4-component vector of float)
0:? 'ff1' (global bool Face)
0:? 'ff2' (global 4-component vector of float)
0:? 'ff3' (global 4-component vector of float)
0:? 'ff4' (global 4-component vector of float FragCoord)
0:? 'ff2' (layout(offset=4 ) global 4-component vector of float)
0:? 'ff3' (layout(offset=4 ) global 4-component vector of float)
0:? 'ff4' (layout(offset=4 ) global 4-component vector of float FragCoord)
// Module Version 10000
// Generated by (magic number): 80001
@@ -74,6 +74,9 @@ gl_FragCoord origin is upper left
Name 28 "ff3"
Name 29 "ff4"
Decorate 26(ff1) BuiltIn FrontFacing
Decorate 27(ff2) Offset 4
Decorate 28(ff3) Offset 4
Decorate 29(ff4) Offset 4
Decorate 29(ff4) BuiltIn FragCoord
2: TypeVoid
3: TypeFunction 2