HLSL: Include built-in processing for vertex input and fragment output flattening.
This commit is contained in:
@@ -80,7 +80,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:
|
||||
@@ -94,8 +94,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:
|
||||
@@ -182,7 +182,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:
|
||||
@@ -196,8 +196,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
|
||||
@@ -225,7 +225,7 @@ gl_FragCoord origin is upper left
|
||||
Name 68 "psout"
|
||||
Name 77 "flattenTemp"
|
||||
Name 80 "Color"
|
||||
Name 84 "Depth"
|
||||
Name 84 "@entryPointOutput_Depth"
|
||||
Name 89 "g_tTex1df4a"
|
||||
Name 90 "g_tTex1df4"
|
||||
Name 93 "g_tTex1di4"
|
||||
@@ -236,7 +236,7 @@ gl_FragCoord origin is upper left
|
||||
Decorate 40(g_tTex2di4) DescriptorSet 0
|
||||
Decorate 55(g_tTex2du4) DescriptorSet 0
|
||||
Decorate 80(Color) Location 0
|
||||
Decorate 84(Depth) BuiltIn FragDepth
|
||||
Decorate 84(@entryPointOutput_Depth) BuiltIn FragDepth
|
||||
Decorate 89(g_tTex1df4a) DescriptorSet 0
|
||||
Decorate 89(g_tTex1df4a) Binding 1
|
||||
Decorate 90(g_tTex1df4) DescriptorSet 0
|
||||
@@ -296,7 +296,7 @@ gl_FragCoord origin is upper left
|
||||
79: TypePointer Output 7(fvec4)
|
||||
80(Color): 79(ptr) Variable Output
|
||||
83: TypePointer Output 6(float)
|
||||
84(Depth): 83(ptr) Variable Output
|
||||
84(@entryPointOutput_Depth): 83(ptr) Variable Output
|
||||
87: TypeImage 6(float) 1D array sampled format:Unknown
|
||||
88: TypePointer UniformConstant 87
|
||||
89(g_tTex1df4a): 88(ptr) Variable UniformConstant
|
||||
@@ -317,7 +317,7 @@ gl_FragCoord origin is upper left
|
||||
Store 80(Color) 82
|
||||
85: 72(ptr) AccessChain 77(flattenTemp) 31
|
||||
86: 6(float) Load 85
|
||||
Store 84(Depth) 86
|
||||
Store 84(@entryPointOutput_Depth) 86
|
||||
Return
|
||||
FunctionEnd
|
||||
10(@main():8(PS_OUTPUT) Function None 9
|
||||
|
||||
Reference in New Issue
Block a user