HLSL: Implement packoffset production.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user