HLSL: Include built-in processing for vertex input and fragment output flattening.
This commit is contained in:
@@ -350,7 +350,7 @@ gl_FragCoord origin is upper left
|
||||
0:34 Constant:
|
||||
0:34 0 (const int)
|
||||
0:34 move second child to first child ( temp float)
|
||||
0:? 'Depth' ( out float FragDepth)
|
||||
0:? '@entryPointOutput_Depth' ( out float FragDepth)
|
||||
0:34 Depth: direct index for structure ( temp float)
|
||||
0:34 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
|
||||
0:34 Constant:
|
||||
@@ -372,8 +372,8 @@ gl_FragCoord origin is upper left
|
||||
0:? 'g_tTexcdi4' ( uniform itextureCube)
|
||||
0:? 'g_tTexcdu4' ( uniform utextureCube)
|
||||
0:? 'anon@0' (layout( row_major std140) uniform block{ uniform float c1, uniform 2-component vector of float c2, uniform 3-component vector of float c3, uniform 4-component vector of float c4})
|
||||
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:
|
||||
@@ -730,7 +730,7 @@ gl_FragCoord origin is upper left
|
||||
0:34 Constant:
|
||||
0:34 0 (const int)
|
||||
0:34 move second child to first child ( temp float)
|
||||
0:? 'Depth' ( out float FragDepth)
|
||||
0:? '@entryPointOutput_Depth' ( out float FragDepth)
|
||||
0:34 Depth: direct index for structure ( temp float)
|
||||
0:34 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
|
||||
0:34 Constant:
|
||||
@@ -752,8 +752,8 @@ gl_FragCoord origin is upper left
|
||||
0:? 'g_tTexcdi4' ( uniform itextureCube)
|
||||
0:? 'g_tTexcdu4' ( uniform utextureCube)
|
||||
0:? 'anon@0' (layout( row_major std140) uniform block{ uniform float c1, uniform 2-component vector of float c2, uniform 3-component vector of float c3, uniform 4-component vector of float c4})
|
||||
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
|
||||
@@ -811,7 +811,7 @@ gl_FragCoord origin is upper left
|
||||
Name 226 "psout"
|
||||
Name 235 "flattenTemp"
|
||||
Name 238 "Color"
|
||||
Name 242 "Depth"
|
||||
Name 242 "@entryPointOutput_Depth"
|
||||
Name 245 "g_sSamp2d"
|
||||
Name 248 "g_tTex1df4a"
|
||||
Name 249 "g_tTex1df4"
|
||||
@@ -835,7 +835,7 @@ gl_FragCoord origin is upper left
|
||||
Decorate 143(g_tTexcdi4) DescriptorSet 0
|
||||
Decorate 154(g_tTexcdu4) DescriptorSet 0
|
||||
Decorate 238(Color) Location 0
|
||||
Decorate 242(Depth) BuiltIn FragDepth
|
||||
Decorate 242(@entryPointOutput_Depth) BuiltIn FragDepth
|
||||
Decorate 245(g_sSamp2d) DescriptorSet 0
|
||||
Decorate 248(g_tTex1df4a) DescriptorSet 0
|
||||
Decorate 248(g_tTex1df4a) Binding 1
|
||||
@@ -904,7 +904,7 @@ gl_FragCoord origin is upper left
|
||||
237: TypePointer Output 7(fvec4)
|
||||
238(Color): 237(ptr) Variable Output
|
||||
241: TypePointer Output 6(float)
|
||||
242(Depth): 241(ptr) Variable Output
|
||||
242(@entryPointOutput_Depth): 241(ptr) Variable Output
|
||||
245(g_sSamp2d): 19(ptr) Variable UniformConstant
|
||||
246: TypeImage 6(float) 1D sampled format:Unknown
|
||||
247: TypePointer UniformConstant 246
|
||||
@@ -935,7 +935,7 @@ gl_FragCoord origin is upper left
|
||||
Store 238(Color) 240
|
||||
243: 230(ptr) AccessChain 235(flattenTemp) 30
|
||||
244: 6(float) Load 243
|
||||
Store 242(Depth) 244
|
||||
Store 242(@entryPointOutput_Depth) 244
|
||||
Return
|
||||
FunctionEnd
|
||||
10(@main():8(PS_OUTPUT) Function None 9
|
||||
|
||||
Reference in New Issue
Block a user