HLSL: Include built-in processing for vertex input and fragment output flattening.
This commit is contained in:
@@ -239,7 +239,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:
|
||||
@@ -259,8 +259,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:
|
||||
@@ -506,7 +506,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:
|
||||
@@ -526,8 +526,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
|
||||
@@ -573,7 +573,7 @@ gl_FragCoord origin is upper left
|
||||
Name 153 "psout"
|
||||
Name 164 "flattenTemp"
|
||||
Name 167 "Color"
|
||||
Name 171 "Depth"
|
||||
Name 171 "@entryPointOutput_Depth"
|
||||
Name 174 "g_tTex1df4a"
|
||||
Decorate 16(g_tTex1df4) DescriptorSet 0
|
||||
Decorate 16(g_tTex1df4) Binding 0
|
||||
@@ -591,7 +591,7 @@ gl_FragCoord origin is upper left
|
||||
Decorate 137(g_tTexcdi4) DescriptorSet 0
|
||||
Decorate 146(g_tTexcdu4) DescriptorSet 0
|
||||
Decorate 167(Color) Location 0
|
||||
Decorate 171(Depth) BuiltIn FragDepth
|
||||
Decorate 171(@entryPointOutput_Depth) BuiltIn FragDepth
|
||||
Decorate 174(g_tTex1df4a) DescriptorSet 0
|
||||
Decorate 174(g_tTex1df4a) Binding 1
|
||||
2: TypeVoid
|
||||
@@ -689,7 +689,7 @@ gl_FragCoord origin is upper left
|
||||
166: TypePointer Output 7(fvec4)
|
||||
167(Color): 166(ptr) Variable Output
|
||||
170: TypePointer Output 6(float)
|
||||
171(Depth): 170(ptr) Variable Output
|
||||
171(@entryPointOutput_Depth): 170(ptr) Variable Output
|
||||
174(g_tTex1df4a): 15(ptr) Variable UniformConstant
|
||||
4(main): 2 Function None 3
|
||||
5: Label
|
||||
@@ -701,7 +701,7 @@ gl_FragCoord origin is upper left
|
||||
Store 167(Color) 169
|
||||
172: 159(ptr) AccessChain 164(flattenTemp) 158
|
||||
173: 6(float) Load 172
|
||||
Store 171(Depth) 173
|
||||
Store 171(@entryPointOutput_Depth) 173
|
||||
Return
|
||||
FunctionEnd
|
||||
10(@main():8(PS_OUTPUT) Function None 9
|
||||
|
||||
Reference in New Issue
Block a user