HLSL: Include built-in processing for vertex input and fragment output flattening.
This commit is contained in:
@@ -182,7 +182,7 @@ gl_FragCoord origin is upper left
|
||||
0:48 Constant:
|
||||
0:48 0 (const int)
|
||||
0:48 move second child to first child ( temp float)
|
||||
0:? 'Depth' ( out float FragDepth)
|
||||
0:? '@entryPointOutput_Depth' ( out float FragDepth)
|
||||
0:48 Depth: direct index for structure ( temp float)
|
||||
0:48 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
|
||||
0:48 Constant:
|
||||
@@ -211,8 +211,8 @@ gl_FragCoord origin is upper left
|
||||
0:? 'g_tTexcdi4a' ( uniform itextureCubeArray)
|
||||
0:? 'g_tTexcdu4a' ( uniform utextureCubeArray)
|
||||
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:
|
||||
@@ -401,7 +401,7 @@ gl_FragCoord origin is upper left
|
||||
0:48 Constant:
|
||||
0:48 0 (const int)
|
||||
0:48 move second child to first child ( temp float)
|
||||
0:? 'Depth' ( out float FragDepth)
|
||||
0:? '@entryPointOutput_Depth' ( out float FragDepth)
|
||||
0:48 Depth: direct index for structure ( temp float)
|
||||
0:48 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
|
||||
0:48 Constant:
|
||||
@@ -430,8 +430,8 @@ gl_FragCoord origin is upper left
|
||||
0:? 'g_tTexcdi4a' ( uniform itextureCubeArray)
|
||||
0:? 'g_tTexcdu4a' ( uniform utextureCubeArray)
|
||||
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
|
||||
@@ -470,7 +470,7 @@ gl_FragCoord origin is upper left
|
||||
Name 104 "psout"
|
||||
Name 116 "flattenTemp"
|
||||
Name 119 "Color"
|
||||
Name 123 "Depth"
|
||||
Name 123 "@entryPointOutput_Depth"
|
||||
Name 128 "g_sSamp"
|
||||
Name 131 "g_tTex1df4"
|
||||
Name 134 "g_tTex1di4"
|
||||
@@ -504,7 +504,7 @@ gl_FragCoord origin is upper left
|
||||
Decorate 81(g_tTex2di4a) DescriptorSet 0
|
||||
Decorate 93(g_tTex2du4a) DescriptorSet 0
|
||||
Decorate 119(Color) Location 0
|
||||
Decorate 123(Depth) BuiltIn FragDepth
|
||||
Decorate 123(@entryPointOutput_Depth) BuiltIn FragDepth
|
||||
Decorate 128(g_sSamp) DescriptorSet 0
|
||||
Decorate 128(g_sSamp) Binding 0
|
||||
Decorate 131(g_tTex1df4) DescriptorSet 0
|
||||
@@ -576,7 +576,7 @@ gl_FragCoord origin is upper left
|
||||
118: TypePointer Output 7(fvec4)
|
||||
119(Color): 118(ptr) Variable Output
|
||||
122: TypePointer Output 6(float)
|
||||
123(Depth): 122(ptr) Variable Output
|
||||
123(@entryPointOutput_Depth): 122(ptr) Variable Output
|
||||
126: TypeSampler
|
||||
127: TypePointer UniformConstant 126
|
||||
128(g_sSamp): 127(ptr) Variable UniformConstant
|
||||
@@ -635,7 +635,7 @@ gl_FragCoord origin is upper left
|
||||
Store 119(Color) 121
|
||||
124: 111(ptr) AccessChain 116(flattenTemp) 110
|
||||
125: 6(float) Load 124
|
||||
Store 123(Depth) 125
|
||||
Store 123(@entryPointOutput_Depth) 125
|
||||
Return
|
||||
FunctionEnd
|
||||
10(@main():8(PS_OUTPUT) Function None 9
|
||||
|
||||
Reference in New Issue
Block a user