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

@@ -350,7 +350,7 @@ gl_FragCoord origin is upper left
0:28 Constant:
0:28 0 (const int)
0:28 move second child to first child ( temp float)
0:? 'Depth' ( out float FragDepth)
0:? '@entryPointOutput_Depth' ( out float FragDepth)
0:28 Depth: direct index for structure ( temp float)
0:28 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
0:28 Constant:
@@ -368,8 +368,8 @@ gl_FragCoord origin is upper left
0:? 'g_tTexcdi4a' ( uniform itextureCubeArray)
0:? 'g_tTexcdu4a' ( uniform utextureCubeArray)
0:? 'anon@0' (layout( row_major std140) uniform block{ uniform float c1, uniform 2-component vector of float c2, uniform 3-component vector of float c3, uniform 4-component vector of float c4})
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:
@@ -726,7 +726,7 @@ gl_FragCoord origin is upper left
0:28 Constant:
0:28 0 (const int)
0:28 move second child to first child ( temp float)
0:? 'Depth' ( out float FragDepth)
0:? '@entryPointOutput_Depth' ( out float FragDepth)
0:28 Depth: direct index for structure ( temp float)
0:28 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
0:28 Constant:
@@ -744,8 +744,8 @@ gl_FragCoord origin is upper left
0:? 'g_tTexcdi4a' ( uniform itextureCubeArray)
0:? 'g_tTexcdu4a' ( uniform utextureCubeArray)
0:? 'anon@0' (layout( row_major std140) uniform block{ uniform float c1, uniform 2-component vector of float c2, uniform 3-component vector of float c3, uniform 4-component vector of float c4})
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
@@ -804,7 +804,7 @@ gl_FragCoord origin is upper left
Name 226 "psout"
Name 235 "flattenTemp"
Name 238 "Color"
Name 242 "Depth"
Name 242 "@entryPointOutput_Depth"
Name 245 "g_sSamp2d"
Name 248 "g_tTex1df4a"
Name 251 "g_tTex1di4a"
@@ -824,7 +824,7 @@ gl_FragCoord origin is upper left
Decorate 143(g_tTexcdi4a) DescriptorSet 0
Decorate 154(g_tTexcdu4a) DescriptorSet 0
Decorate 238(Color) Location 0
Decorate 242(Depth) BuiltIn FragDepth
Decorate 242(@entryPointOutput_Depth) BuiltIn FragDepth
Decorate 245(g_sSamp2d) DescriptorSet 0
Decorate 248(g_tTex1df4a) DescriptorSet 0
Decorate 248(g_tTex1df4a) Binding 0
@@ -888,7 +888,7 @@ gl_FragCoord origin is upper left
237: TypePointer Output 7(fvec4)
238(Color): 237(ptr) Variable Output
241: TypePointer Output 6(float)
242(Depth): 241(ptr) Variable Output
242(@entryPointOutput_Depth): 241(ptr) Variable Output
245(g_sSamp2d): 19(ptr) Variable UniformConstant
246: TypeImage 6(float) 1D array sampled format:Unknown
247: TypePointer UniformConstant 246
@@ -909,7 +909,7 @@ gl_FragCoord origin is upper left
Store 238(Color) 240
243: 230(ptr) AccessChain 235(flattenTemp) 69
244: 6(float) Load 243
Store 242(Depth) 244
Store 242(@entryPointOutput_Depth) 244
Return
FunctionEnd
10(@main():8(PS_OUTPUT) Function None 9