HLSL: Include built-in processing for vertex input and fragment output flattening.
This commit is contained in:
@@ -68,7 +68,7 @@ gl_FragCoord origin is upper left
|
||||
0:24 Constant:
|
||||
0:24 0 (const int)
|
||||
0:24 move second child to first child ( temp float)
|
||||
0:? 'Depth' ( out float FragDepth)
|
||||
0:? '@entryPointOutput_Depth' ( out float FragDepth)
|
||||
0:24 Depth: direct index for structure ( temp float)
|
||||
0:24 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
|
||||
0:24 Constant:
|
||||
@@ -79,8 +79,8 @@ gl_FragCoord origin is upper left
|
||||
0:? 'g_tTexbis' (layout( r32i) uniform itextureBuffer)
|
||||
0:? 'g_tTexbus' (layout( r32ui) uniform utextureBuffer)
|
||||
0:? 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4})
|
||||
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:
|
||||
@@ -155,7 +155,7 @@ gl_FragCoord origin is upper left
|
||||
0:24 Constant:
|
||||
0:24 0 (const int)
|
||||
0:24 move second child to first child ( temp float)
|
||||
0:? 'Depth' ( out float FragDepth)
|
||||
0:? '@entryPointOutput_Depth' ( out float FragDepth)
|
||||
0:24 Depth: direct index for structure ( temp float)
|
||||
0:24 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
|
||||
0:24 Constant:
|
||||
@@ -166,8 +166,8 @@ gl_FragCoord origin is upper left
|
||||
0:? 'g_tTexbis' (layout( r32i) uniform itextureBuffer)
|
||||
0:? 'g_tTexbus' (layout( r32ui) uniform utextureBuffer)
|
||||
0:? 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4})
|
||||
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
|
||||
@@ -204,7 +204,7 @@ gl_FragCoord origin is upper left
|
||||
Name 54 "psout"
|
||||
Name 64 "flattenTemp"
|
||||
Name 67 "Color"
|
||||
Name 71 "Depth"
|
||||
Name 71 "@entryPointOutput_Depth"
|
||||
Name 74 "g_tTexbfs_test"
|
||||
Decorate 16(g_tTexbfs) DescriptorSet 0
|
||||
MemberDecorate 22($Global) 0 Offset 0
|
||||
@@ -220,7 +220,7 @@ gl_FragCoord origin is upper left
|
||||
Decorate 35(g_tTexbis) DescriptorSet 0
|
||||
Decorate 46(g_tTexbus) DescriptorSet 0
|
||||
Decorate 67(Color) Location 0
|
||||
Decorate 71(Depth) BuiltIn FragDepth
|
||||
Decorate 71(@entryPointOutput_Depth) BuiltIn FragDepth
|
||||
Decorate 74(g_tTexbfs_test) DescriptorSet 0
|
||||
Decorate 74(g_tTexbfs_test) Binding 0
|
||||
2: TypeVoid
|
||||
@@ -260,7 +260,7 @@ gl_FragCoord origin is upper left
|
||||
66: TypePointer Output 7(fvec4)
|
||||
67(Color): 66(ptr) Variable Output
|
||||
70: TypePointer Output 6(float)
|
||||
71(Depth): 70(ptr) Variable Output
|
||||
71(@entryPointOutput_Depth): 70(ptr) Variable Output
|
||||
74(g_tTexbfs_test): 15(ptr) Variable UniformConstant
|
||||
4(main): 2 Function None 3
|
||||
5: Label
|
||||
@@ -272,7 +272,7 @@ gl_FragCoord origin is upper left
|
||||
Store 67(Color) 69
|
||||
72: 12(ptr) AccessChain 64(flattenTemp) 59
|
||||
73: 6(float) Load 72
|
||||
Store 71(Depth) 73
|
||||
Store 71(@entryPointOutput_Depth) 73
|
||||
Return
|
||||
FunctionEnd
|
||||
10(@main():8(PS_OUTPUT) Function None 9
|
||||
|
||||
Reference in New Issue
Block a user