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

@@ -155,7 +155,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:
@@ -172,8 +172,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:
@@ -335,7 +335,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:
@@ -352,8 +352,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
@@ -394,7 +394,7 @@ gl_FragCoord origin is upper left
Name 126 "psout"
Name 136 "flattenTemp"
Name 139 "Color"
Name 143 "Depth"
Name 143 "@entryPointOutput_Depth"
Name 146 "g_tTex1df4"
Decorate 16(g_tTex1df4a) DescriptorSet 0
Decorate 16(g_tTex1df4a) Binding 1
@@ -409,7 +409,7 @@ gl_FragCoord origin is upper left
Decorate 105(g_tTexcdi4a) DescriptorSet 0
Decorate 115(g_tTexcdu4a) DescriptorSet 0
Decorate 139(Color) Location 0
Decorate 143(Depth) BuiltIn FragDepth
Decorate 143(@entryPointOutput_Depth) BuiltIn FragDepth
Decorate 146(g_tTex1df4) DescriptorSet 0
Decorate 146(g_tTex1df4) Binding 0
2: TypeVoid
@@ -494,7 +494,7 @@ gl_FragCoord origin is upper left
138: TypePointer Output 7(fvec4)
139(Color): 138(ptr) Variable Output
142: TypePointer Output 6(float)
143(Depth): 142(ptr) Variable Output
143(@entryPointOutput_Depth): 142(ptr) Variable Output
146(g_tTex1df4): 15(ptr) Variable UniformConstant
4(main): 2 Function None 3
5: Label
@@ -506,7 +506,7 @@ gl_FragCoord origin is upper left
Store 139(Color) 141
144: 131(ptr) AccessChain 136(flattenTemp) 130
145: 6(float) Load 144
Store 143(Depth) 145
Store 143(@entryPointOutput_Depth) 145
Return
FunctionEnd
10(@main():8(PS_OUTPUT) Function None 9