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

@ -185,7 +185,7 @@ gl_FragCoord origin is upper left
0:29 Constant:
0:29 0 (const int)
0:29 move second child to first child ( temp float)
0:? 'Depth' ( out float FragDepth)
0:? '@entryPointOutput_Depth' ( out float FragDepth)
0:29 Depth: direct index for structure ( temp float)
0:29 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
0:29 Constant:
@ -206,8 +206,8 @@ gl_FragCoord origin is upper left
0:? 'g_tTexcdf4' ( uniform textureCube)
0:? 'g_tTexcdi4' ( uniform itextureCube)
0:? 'g_tTexcdu4' ( uniform utextureCube)
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:
@ -399,7 +399,7 @@ gl_FragCoord origin is upper left
0:29 Constant:
0:29 0 (const int)
0:29 move second child to first child ( temp float)
0:? 'Depth' ( out float FragDepth)
0:? '@entryPointOutput_Depth' ( out float FragDepth)
0:29 Depth: direct index for structure ( temp float)
0:29 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
0:29 Constant:
@ -420,8 +420,8 @@ gl_FragCoord origin is upper left
0:? 'g_tTexcdf4' ( uniform textureCube)
0:? 'g_tTexcdi4' ( uniform itextureCube)
0:? 'g_tTexcdu4' ( uniform utextureCube)
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
@ -467,7 +467,7 @@ gl_FragCoord origin is upper left
Name 149 "psout"
Name 160 "flattenTemp"
Name 163 "Color"
Name 167 "Depth"
Name 167 "@entryPointOutput_Depth"
Name 170 "g_sSamp2d"
Name 171 "g_tTex1df4a"
Decorate 16(g_tTex1df4) DescriptorSet 0
@ -486,7 +486,7 @@ gl_FragCoord origin is upper left
Decorate 133(g_tTexcdi4) DescriptorSet 0
Decorate 142(g_tTexcdu4) DescriptorSet 0
Decorate 163(Color) Location 0
Decorate 167(Depth) BuiltIn FragDepth
Decorate 167(@entryPointOutput_Depth) BuiltIn FragDepth
Decorate 170(g_sSamp2d) DescriptorSet 0
Decorate 171(g_tTex1df4a) DescriptorSet 0
Decorate 171(g_tTex1df4a) Binding 1
@ -581,7 +581,7 @@ gl_FragCoord origin is upper left
162: TypePointer Output 7(fvec4)
163(Color): 162(ptr) Variable Output
166: TypePointer Output 6(float)
167(Depth): 166(ptr) Variable Output
167(@entryPointOutput_Depth): 166(ptr) Variable Output
170(g_sSamp2d): 19(ptr) Variable UniformConstant
171(g_tTex1df4a): 15(ptr) Variable UniformConstant
4(main): 2 Function None 3
@ -594,7 +594,7 @@ gl_FragCoord origin is upper left
Store 163(Color) 165
168: 155(ptr) AccessChain 160(flattenTemp) 154
169: 6(float) Load 168
Store 167(Depth) 169
Store 167(@entryPointOutput_Depth) 169
Return
FunctionEnd
10(@main():8(PS_OUTPUT) Function None 9