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

@@ -1118,7 +1118,7 @@ gl_FragCoord origin is upper left
0:46 Constant:
0:46 0 (const int)
0:46 move second child to first child ( temp float)
0:? 'Depth' ( out float FragDepth)
0:? '@entryPointOutput_Depth' ( out float FragDepth)
0:46 Depth: direct index for structure ( temp float)
0:46 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
0:46 Constant:
@@ -1152,8 +1152,8 @@ gl_FragCoord origin is upper left
0:? 'g_tTex2dmsf4a' ( uniform texture2DMSArray)
0:? 'g_tTex2dmsi4a' ( uniform itexture2DMSArray)
0:? 'g_tTex2dmsu4a' ( uniform utexture2DMSArray)
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:
@@ -2278,7 +2278,7 @@ gl_FragCoord origin is upper left
0:46 Constant:
0:46 0 (const int)
0:46 move second child to first child ( temp float)
0:? 'Depth' ( out float FragDepth)
0:? '@entryPointOutput_Depth' ( out float FragDepth)
0:46 Depth: direct index for structure ( temp float)
0:46 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
0:46 Constant:
@@ -2312,8 +2312,8 @@ gl_FragCoord origin is upper left
0:? 'g_tTex2dmsf4a' ( uniform texture2DMSArray)
0:? 'g_tTex2dmsi4a' ( uniform itexture2DMSArray)
0:? 'g_tTex2dmsu4a' ( uniform utexture2DMSArray)
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
@@ -2418,7 +2418,7 @@ gl_FragCoord origin is upper left
Name 526 "psout"
Name 537 "flattenTemp"
Name 540 "Color"
Name 544 "Depth"
Name 544 "@entryPointOutput_Depth"
Name 549 "g_sSamp"
Decorate 17(g_tTex1df4) DescriptorSet 0
Decorate 17(g_tTex1df4) Binding 0
@@ -2449,7 +2449,7 @@ gl_FragCoord origin is upper left
Decorate 500(g_tTex2dmsi4a) DescriptorSet 0
Decorate 514(g_tTex2dmsu4a) DescriptorSet 0
Decorate 540(Color) Location 0
Decorate 544(Depth) BuiltIn FragDepth
Decorate 544(@entryPointOutput_Depth) BuiltIn FragDepth
Decorate 549(g_sSamp) DescriptorSet 0
Decorate 549(g_sSamp) Binding 0
2: TypeVoid
@@ -2560,7 +2560,7 @@ gl_FragCoord origin is upper left
539: TypePointer Output 7(fvec4)
540(Color): 539(ptr) Variable Output
543: TypePointer Output 6(float)
544(Depth): 543(ptr) Variable Output
544(@entryPointOutput_Depth): 543(ptr) Variable Output
547: TypeSampler
548: TypePointer UniformConstant 547
549(g_sSamp): 548(ptr) Variable UniformConstant
@@ -2574,7 +2574,7 @@ gl_FragCoord origin is upper left
Store 540(Color) 542
545: 532(ptr) AccessChain 537(flattenTemp) 531
546: 6(float) Load 545
Store 544(Depth) 546
Store 544(@entryPointOutput_Depth) 546
Return
FunctionEnd
10(@main():8(PS_OUTPUT) Function None 9