HLSL: Include built-in processing for vertex input and fragment output flattening.
This commit is contained in:
@@ -128,7 +128,7 @@ gl_FragCoord origin is upper left
|
||||
0:20 Constant:
|
||||
0:20 0 (const int)
|
||||
0:20 move second child to first child ( temp float)
|
||||
0:? 'Depth' ( out float FragDepth)
|
||||
0:? '@entryPointOutput_Depth' ( out float FragDepth)
|
||||
0:20 Depth: direct index for structure ( temp float)
|
||||
0:20 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
|
||||
0:20 Constant:
|
||||
@@ -142,8 +142,8 @@ gl_FragCoord origin is upper left
|
||||
0:? 'g_tTex2df4' ( uniform texture2DArray)
|
||||
0:? 'g_tTex2di4' ( uniform itexture2DArray)
|
||||
0:? 'g_tTex2du4' ( uniform utexture2DArray)
|
||||
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:
|
||||
@@ -278,7 +278,7 @@ gl_FragCoord origin is upper left
|
||||
0:20 Constant:
|
||||
0:20 0 (const int)
|
||||
0:20 move second child to first child ( temp float)
|
||||
0:? 'Depth' ( out float FragDepth)
|
||||
0:? '@entryPointOutput_Depth' ( out float FragDepth)
|
||||
0:20 Depth: direct index for structure ( temp float)
|
||||
0:20 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
|
||||
0:20 Constant:
|
||||
@@ -292,8 +292,8 @@ gl_FragCoord origin is upper left
|
||||
0:? 'g_tTex2df4' ( uniform texture2DArray)
|
||||
0:? 'g_tTex2di4' ( uniform itexture2DArray)
|
||||
0:? 'g_tTex2du4' ( uniform utexture2DArray)
|
||||
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
|
||||
@@ -327,7 +327,7 @@ gl_FragCoord origin is upper left
|
||||
Name 98 "psout"
|
||||
Name 107 "flattenTemp"
|
||||
Name 110 "Color"
|
||||
Name 114 "Depth"
|
||||
Name 114 "@entryPointOutput_Depth"
|
||||
Name 117 "g_tTex1df4a"
|
||||
Decorate 16(g_tTex1df4) DescriptorSet 0
|
||||
Decorate 16(g_tTex1df4) Binding 0
|
||||
@@ -339,7 +339,7 @@ gl_FragCoord origin is upper left
|
||||
Decorate 77(g_tTex2di4) DescriptorSet 0
|
||||
Decorate 87(g_tTex2du4) DescriptorSet 0
|
||||
Decorate 110(Color) Location 0
|
||||
Decorate 114(Depth) BuiltIn FragDepth
|
||||
Decorate 114(@entryPointOutput_Depth) BuiltIn FragDepth
|
||||
Decorate 117(g_tTex1df4a) DescriptorSet 0
|
||||
Decorate 117(g_tTex1df4a) Binding 1
|
||||
2: TypeVoid
|
||||
@@ -410,7 +410,7 @@ gl_FragCoord origin is upper left
|
||||
109: TypePointer Output 7(fvec4)
|
||||
110(Color): 109(ptr) Variable Output
|
||||
113: TypePointer Output 6(float)
|
||||
114(Depth): 113(ptr) Variable Output
|
||||
114(@entryPointOutput_Depth): 113(ptr) Variable Output
|
||||
117(g_tTex1df4a): 15(ptr) Variable UniformConstant
|
||||
4(main): 2 Function None 3
|
||||
5: Label
|
||||
@@ -422,7 +422,7 @@ gl_FragCoord origin is upper left
|
||||
Store 110(Color) 112
|
||||
115: 102(ptr) AccessChain 107(flattenTemp) 44
|
||||
116: 6(float) Load 115
|
||||
Store 114(Depth) 116
|
||||
Store 114(@entryPointOutput_Depth) 116
|
||||
Return
|
||||
FunctionEnd
|
||||
10(@main():8(PS_OUTPUT) Function None 9
|
||||
|
||||
Reference in New Issue
Block a user