HLSL: Include built-in processing for vertex input and fragment output flattening.
This commit is contained in:
@@ -185,7 +185,7 @@ gl_FragCoord origin is upper left
|
||||
0:28 Constant:
|
||||
0:28 0 (const int)
|
||||
0:28 move second child to first child ( temp float)
|
||||
0:? 'Depth' ( out float FragDepth)
|
||||
0:? '@entryPointOutput_Depth' ( out float FragDepth)
|
||||
0:28 Depth: direct index for structure ( temp float)
|
||||
0:28 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
|
||||
0:28 Constant:
|
||||
@@ -205,8 +205,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:
|
||||
@@ -398,7 +398,7 @@ gl_FragCoord origin is upper left
|
||||
0:28 Constant:
|
||||
0:28 0 (const int)
|
||||
0:28 move second child to first child ( temp float)
|
||||
0:? 'Depth' ( out float FragDepth)
|
||||
0:? '@entryPointOutput_Depth' ( out float FragDepth)
|
||||
0:28 Depth: direct index for structure ( temp float)
|
||||
0:28 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
|
||||
0:28 Constant:
|
||||
@@ -418,8 +418,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
|
||||
@@ -465,7 +465,7 @@ gl_FragCoord origin is upper left
|
||||
Name 148 "psout"
|
||||
Name 159 "flattenTemp"
|
||||
Name 162 "Color"
|
||||
Name 166 "Depth"
|
||||
Name 166 "@entryPointOutput_Depth"
|
||||
Name 169 "g_tTex1df4a"
|
||||
Decorate 16(g_tTex1df4) DescriptorSet 0
|
||||
Decorate 16(g_tTex1df4) Binding 0
|
||||
@@ -483,7 +483,7 @@ gl_FragCoord origin is upper left
|
||||
Decorate 132(g_tTexcdi4) DescriptorSet 0
|
||||
Decorate 141(g_tTexcdu4) DescriptorSet 0
|
||||
Decorate 162(Color) Location 0
|
||||
Decorate 166(Depth) BuiltIn FragDepth
|
||||
Decorate 166(@entryPointOutput_Depth) BuiltIn FragDepth
|
||||
Decorate 169(g_tTex1df4a) DescriptorSet 0
|
||||
Decorate 169(g_tTex1df4a) Binding 1
|
||||
2: TypeVoid
|
||||
@@ -576,7 +576,7 @@ gl_FragCoord origin is upper left
|
||||
161: TypePointer Output 7(fvec4)
|
||||
162(Color): 161(ptr) Variable Output
|
||||
165: TypePointer Output 6(float)
|
||||
166(Depth): 165(ptr) Variable Output
|
||||
166(@entryPointOutput_Depth): 165(ptr) Variable Output
|
||||
169(g_tTex1df4a): 15(ptr) Variable UniformConstant
|
||||
4(main): 2 Function None 3
|
||||
5: Label
|
||||
@@ -588,7 +588,7 @@ gl_FragCoord origin is upper left
|
||||
Store 162(Color) 164
|
||||
167: 154(ptr) AccessChain 159(flattenTemp) 153
|
||||
168: 6(float) Load 167
|
||||
Store 166(Depth) 168
|
||||
Store 166(@entryPointOutput_Depth) 168
|
||||
Return
|
||||
FunctionEnd
|
||||
10(@main():8(PS_OUTPUT) Function None 9
|
||||
|
||||
Reference in New Issue
Block a user