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

@ -128,7 +128,7 @@ gl_FragCoord origin is upper left
0:38 Constant:
0:38 0 (const int)
0:38 move second child to first child ( temp float)
0:? 'Depth' ( out float FragDepth)
0:? '@entryPointOutput_Depth' ( out float FragDepth)
0:38 Depth: direct index for structure ( temp float)
0:38 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
0:38 Constant:
@ -156,8 +156,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:
@ -292,7 +292,7 @@ gl_FragCoord origin is upper left
0:38 Constant:
0:38 0 (const int)
0:38 move second child to first child ( temp float)
0:? 'Depth' ( out float FragDepth)
0:? '@entryPointOutput_Depth' ( out float FragDepth)
0:38 Depth: direct index for structure ( temp float)
0:38 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
0:38 Constant:
@ -320,8 +320,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
@ -356,7 +356,7 @@ gl_FragCoord origin is upper left
Name 107 "psout"
Name 118 "flattenTemp"
Name 121 "Color"
Name 125 "Depth"
Name 125 "@entryPointOutput_Depth"
Name 130 "g_tTex3df4"
Name 133 "g_tTex3di4"
Name 136 "g_tTex3du4"
@ -382,7 +382,7 @@ gl_FragCoord origin is upper left
Decorate 81(g_tTex2di4) DescriptorSet 0
Decorate 95(g_tTex2du4) DescriptorSet 0
Decorate 121(Color) Location 0
Decorate 125(Depth) BuiltIn FragDepth
Decorate 125(@entryPointOutput_Depth) BuiltIn FragDepth
Decorate 130(g_tTex3df4) DescriptorSet 0
Decorate 133(g_tTex3di4) DescriptorSet 0
Decorate 136(g_tTex3du4) DescriptorSet 0
@ -459,7 +459,7 @@ gl_FragCoord origin is upper left
120: TypePointer Output 7(fvec4)
121(Color): 120(ptr) Variable Output
124: TypePointer Output 6(float)
125(Depth): 124(ptr) Variable Output
125(@entryPointOutput_Depth): 124(ptr) Variable Output
128: TypeImage 6(float) 3D sampled format:Unknown
129: TypePointer UniformConstant 128
130(g_tTex3df4): 129(ptr) Variable UniformConstant
@ -515,7 +515,7 @@ gl_FragCoord origin is upper left
Store 121(Color) 123
126: 12(ptr) AccessChain 118(flattenTemp) 113
127: 6(float) Load 126
Store 125(Depth) 127
Store 125(@entryPointOutput_Depth) 127
Return
FunctionEnd
10(@main():8(PS_OUTPUT) Function None 9