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

@@ -146,7 +146,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:
@@ -163,8 +163,8 @@ gl_FragCoord origin is upper left
0:? 'g_tTexcdf4' ( uniform textureCubeArray)
0:? 'g_tTexcdi4' ( uniform itextureCubeArray)
0:? 'g_tTexcdu4' ( 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:
@@ -317,7 +317,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:
@@ -334,8 +334,8 @@ gl_FragCoord origin is upper left
0:? 'g_tTexcdf4' ( uniform textureCubeArray)
0:? 'g_tTexcdi4' ( uniform itextureCubeArray)
0:? 'g_tTexcdu4' ( 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
@@ -370,7 +370,7 @@ gl_FragCoord origin is upper left
Name 91 "psout"
Name 100 "flattenTemp"
Name 103 "Color"
Name 107 "Depth"
Name 107 "@entryPointOutput_Depth"
Name 110 "g_tTex1df4a"
Name 113 "g_tTexcdf4"
Name 116 "g_tTexcdi4"
@@ -385,7 +385,7 @@ gl_FragCoord origin is upper left
Decorate 75(g_tTex2di4) DescriptorSet 0
Decorate 84(g_tTex2du4) DescriptorSet 0
Decorate 103(Color) Location 0
Decorate 107(Depth) BuiltIn FragDepth
Decorate 107(@entryPointOutput_Depth) BuiltIn FragDepth
Decorate 110(g_tTex1df4a) DescriptorSet 0
Decorate 110(g_tTex1df4a) Binding 1
Decorate 113(g_tTexcdf4) DescriptorSet 0
@@ -452,7 +452,7 @@ gl_FragCoord origin is upper left
102: TypePointer Output 7(fvec4)
103(Color): 102(ptr) Variable Output
106: TypePointer Output 6(float)
107(Depth): 106(ptr) Variable Output
107(@entryPointOutput_Depth): 106(ptr) Variable Output
110(g_tTex1df4a): 15(ptr) Variable UniformConstant
111: TypeImage 6(float) Cube array sampled format:Unknown
112: TypePointer UniformConstant 111
@@ -473,7 +473,7 @@ gl_FragCoord origin is upper left
Store 103(Color) 105
108: 95(ptr) AccessChain 100(flattenTemp) 31
109: 6(float) Load 108
Store 107(Depth) 109
Store 107(@entryPointOutput_Depth) 109
Return
FunctionEnd
10(@main():8(PS_OUTPUT) Function None 9