HLSL: Implement the register production.

This commit is contained in:
John Kessenich
2016-07-29 14:28:39 -06:00
parent 82d6baf86f
commit 96e9f47cbb
51 changed files with 1009 additions and 852 deletions

View File

@@ -1,4 +1,7 @@
hlsl.float4.frag
WARNING: 0:5: 'register' : ignoring shader_profile
WARNING: 0:6: 'register' : ignoring shader_profile
Shader version: 450
gl_FragCoord origin is upper left
0:? Sequence
@@ -22,8 +25,8 @@ gl_FragCoord origin is upper left
0:? 'AmbientColor' (global 4-component vector of float)
0:? 'ff1' (global bool Face)
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)
0:? 'ff3' (layout(binding=0 offset=4 ) global 4-component vector of float)
0:? 'ff4' (layout(binding=1 offset=4 ) global 4-component vector of float FragCoord)
Linked fragment stage:
@@ -52,8 +55,8 @@ gl_FragCoord origin is upper left
0:? 'AmbientColor' (global 4-component vector of float)
0:? 'ff1' (global bool Face)
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)
0:? 'ff3' (layout(binding=0 offset=4 ) global 4-component vector of float)
0:? 'ff4' (layout(binding=1 offset=4 ) global 4-component vector of float FragCoord)
// Module Version 10000
// Generated by (magic number): 80001
@@ -76,7 +79,9 @@ gl_FragCoord origin is upper left
Decorate 26(ff1) BuiltIn FrontFacing
Decorate 27(ff2) Offset 4
Decorate 28(ff3) Offset 4
Decorate 28(ff3) Binding 0
Decorate 29(ff4) Offset 4
Decorate 29(ff4) Binding 1
Decorate 29(ff4) BuiltIn FragCoord
2: TypeVoid
3: TypeFunction 2