HLSL: Include built-in processing for vertex input and fragment output flattening.

This commit is contained in:
John Kessenich 2017-08-08 20:02:21 -06:00
parent ecd08bc36c
commit 3322dd8f99
55 changed files with 478 additions and 437 deletions

View file

@ -47,14 +47,14 @@ gl_FragCoord origin is upper left
0:4 Constant:
0:4 0 (const int)
0:4 move second child to first child ( temp float)
0:? 'Depth' ( out float FragDepth)
0:? '@entryPointOutput_Depth' ( out float FragDepth)
0:4 Depth: direct index for structure ( temp float)
0:4 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
0:4 Constant:
0:4 1 (const int)
0:? Linker Objects
0:? '@entryPointOutput_Depth' ( out float FragDepth)
0:? 'Color' (layout( location=0) out 4-component vector of float)
0:? 'Depth' ( out float FragDepth)
Linked fragment stage:
@ -108,14 +108,14 @@ gl_FragCoord origin is upper left
0:4 Constant:
0:4 0 (const int)
0:4 move second child to first child ( temp float)
0:? 'Depth' ( out float FragDepth)
0:? '@entryPointOutput_Depth' ( out float FragDepth)
0:4 Depth: direct index for structure ( temp float)
0:4 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
0:4 Constant:
0:4 1 (const int)
0:? Linker Objects
0:? '@entryPointOutput_Depth' ( out float FragDepth)
0:? 'Color' (layout( location=0) out 4-component vector of float)
0:? 'Depth' ( out float FragDepth)
// Module Version 10000
// Generated by (magic number): 80001
@ -136,9 +136,9 @@ gl_FragCoord origin is upper left
Name 17 "psout"
Name 32 "flattenTemp"
Name 35 "Color"
Name 39 "Depth"
Name 39 "@entryPointOutput_Depth"
Decorate 35(Color) Location 0
Decorate 39(Depth) BuiltIn FragDepth
Decorate 39(@entryPointOutput_Depth) BuiltIn FragDepth
2: TypeVoid
3: TypeFunction 2
6: TypeFloat 32
@ -158,7 +158,7 @@ gl_FragCoord origin is upper left
34: TypePointer Output 7(fvec4)
35(Color): 34(ptr) Variable Output
38: TypePointer Output 6(float)
39(Depth): 38(ptr) Variable Output
39(@entryPointOutput_Depth): 38(ptr) Variable Output
4(main): 2 Function None 3
5: Label
32(flattenTemp): 16(ptr) Variable Function
@ -169,7 +169,7 @@ gl_FragCoord origin is upper left
Store 35(Color) 37
40: 27(ptr) AccessChain 32(flattenTemp) 26
41: 6(float) Load 40
Store 39(Depth) 41
Store 39(@entryPointOutput_Depth) 41
Return
FunctionEnd
10(@main():8(PS_OUTPUT) Function None 9