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

@@ -107,7 +107,7 @@ gl_FragCoord origin is upper left
0:24 Constant:
0:24 0 (const int)
0:24 move second child to first child ( temp float)
0:? 'Depth' ( out float FragDepth)
0:? '@entryPointOutput_Depth' ( out float FragDepth)
0:24 Depth: direct index for structure ( temp float)
0:24 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
0:24 Constant:
@@ -124,8 +124,8 @@ gl_FragCoord origin is upper left
0:? 'g_tTexcdf4a' ( uniform textureCubeArray)
0:? 'g_tTexcdi4a' ( uniform itextureCubeArray)
0:? 'g_tTexcdu4a' ( uniform utextureCubeArray)
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:
@@ -239,7 +239,7 @@ gl_FragCoord origin is upper left
0:24 Constant:
0:24 0 (const int)
0:24 move second child to first child ( temp float)
0:? 'Depth' ( out float FragDepth)
0:? '@entryPointOutput_Depth' ( out float FragDepth)
0:24 Depth: direct index for structure ( temp float)
0:24 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
0:24 Constant:
@@ -256,8 +256,8 @@ gl_FragCoord origin is upper left
0:? 'g_tTexcdf4a' ( uniform textureCubeArray)
0:? 'g_tTexcdi4a' ( uniform itextureCubeArray)
0:? 'g_tTexcdu4a' ( uniform utextureCubeArray)
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
@@ -292,7 +292,7 @@ gl_FragCoord origin is upper left
Name 95 "psout"
Name 104 "flattenTemp"
Name 107 "Color"
Name 111 "Depth"
Name 111 "@entryPointOutput_Depth"
Name 116 "g_tTex1df4a"
Name 117 "g_tTex1df4"
Name 120 "g_tTex1di4a"
@@ -306,7 +306,7 @@ gl_FragCoord origin is upper left
Decorate 74(g_tTexcdi4a) DescriptorSet 0
Decorate 84(g_tTexcdu4a) DescriptorSet 0
Decorate 107(Color) Location 0
Decorate 111(Depth) BuiltIn FragDepth
Decorate 111(@entryPointOutput_Depth) BuiltIn FragDepth
Decorate 116(g_tTex1df4a) DescriptorSet 0
Decorate 116(g_tTex1df4a) Binding 1
Decorate 117(g_tTex1df4) DescriptorSet 0
@@ -378,7 +378,7 @@ gl_FragCoord origin is upper left
106: TypePointer Output 7(fvec4)
107(Color): 106(ptr) Variable Output
110: TypePointer Output 6(float)
111(Depth): 110(ptr) Variable Output
111(@entryPointOutput_Depth): 110(ptr) Variable Output
114: TypeImage 6(float) 1D array sampled format:Unknown
115: TypePointer UniformConstant 114
116(g_tTex1df4a): 115(ptr) Variable UniformConstant
@@ -399,7 +399,7 @@ gl_FragCoord origin is upper left
Store 107(Color) 109
112: 99(ptr) AccessChain 104(flattenTemp) 98
113: 6(float) Load 112
Store 111(Depth) 113
Store 111(@entryPointOutput_Depth) 113
Return
FunctionEnd
10(@main():8(PS_OUTPUT) Function None 9