HLSL: Include built-in processing for vertex input and fragment output flattening.
This commit is contained in:
@@ -134,7 +134,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:
|
||||
@@ -162,8 +162,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:
|
||||
@@ -304,7 +304,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:
|
||||
@@ -332,8 +332,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
|
||||
@@ -368,7 +368,7 @@ gl_FragCoord origin is upper left
|
||||
Name 118 "psout"
|
||||
Name 129 "flattenTemp"
|
||||
Name 132 "Color"
|
||||
Name 136 "Depth"
|
||||
Name 136 "@entryPointOutput_Depth"
|
||||
Name 141 "g_tTex1df4"
|
||||
Name 144 "g_tTex1di4"
|
||||
Name 147 "g_tTex1du4"
|
||||
@@ -393,7 +393,7 @@ gl_FragCoord origin is upper left
|
||||
Decorate 90(g_tTex2di4a) DescriptorSet 0
|
||||
Decorate 105(g_tTex2du4a) DescriptorSet 0
|
||||
Decorate 132(Color) Location 0
|
||||
Decorate 136(Depth) BuiltIn FragDepth
|
||||
Decorate 136(@entryPointOutput_Depth) BuiltIn FragDepth
|
||||
Decorate 141(g_tTex1df4) DescriptorSet 0
|
||||
Decorate 141(g_tTex1df4) Binding 0
|
||||
Decorate 144(g_tTex1di4) DescriptorSet 0
|
||||
@@ -473,7 +473,7 @@ gl_FragCoord origin is upper left
|
||||
131: TypePointer Output 7(fvec4)
|
||||
132(Color): 131(ptr) Variable Output
|
||||
135: TypePointer Output 6(float)
|
||||
136(Depth): 135(ptr) Variable Output
|
||||
136(@entryPointOutput_Depth): 135(ptr) Variable Output
|
||||
139: TypeImage 6(float) 1D sampled format:Unknown
|
||||
140: TypePointer UniformConstant 139
|
||||
141(g_tTex1df4): 140(ptr) Variable UniformConstant
|
||||
@@ -529,7 +529,7 @@ gl_FragCoord origin is upper left
|
||||
Store 132(Color) 134
|
||||
137: 12(ptr) AccessChain 129(flattenTemp) 124
|
||||
138: 6(float) Load 137
|
||||
Store 136(Depth) 138
|
||||
Store 136(@entryPointOutput_Depth) 138
|
||||
Return
|
||||
FunctionEnd
|
||||
10(@main():8(PS_OUTPUT) Function None 9
|
||||
|
||||
Reference in New Issue
Block a user