HLSL: Include built-in processing for vertex input and fragment output flattening.
This commit is contained in:
@@ -77,7 +77,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:
|
||||
@@ -97,8 +97,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:
|
||||
@@ -182,7 +182,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:
|
||||
@@ -202,8 +202,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
|
||||
@@ -231,7 +231,7 @@ gl_FragCoord origin is upper left
|
||||
Name 67 "psout"
|
||||
Name 76 "flattenTemp"
|
||||
Name 79 "Color"
|
||||
Name 83 "Depth"
|
||||
Name 83 "@entryPointOutput_Depth"
|
||||
Name 88 "g_tTex1df4a"
|
||||
Name 89 "g_tTex1df4"
|
||||
Name 92 "g_tTex1di4"
|
||||
@@ -248,7 +248,7 @@ gl_FragCoord origin is upper left
|
||||
Decorate 39(g_tTex2di4) DescriptorSet 0
|
||||
Decorate 55(g_tTex2du4) DescriptorSet 0
|
||||
Decorate 79(Color) Location 0
|
||||
Decorate 83(Depth) BuiltIn FragDepth
|
||||
Decorate 83(@entryPointOutput_Depth) BuiltIn FragDepth
|
||||
Decorate 88(g_tTex1df4a) DescriptorSet 0
|
||||
Decorate 88(g_tTex1df4a) Binding 1
|
||||
Decorate 89(g_tTex1df4) DescriptorSet 0
|
||||
@@ -313,7 +313,7 @@ gl_FragCoord origin is upper left
|
||||
78: TypePointer Output 7(fvec4)
|
||||
79(Color): 78(ptr) Variable Output
|
||||
82: TypePointer Output 6(float)
|
||||
83(Depth): 82(ptr) Variable Output
|
||||
83(@entryPointOutput_Depth): 82(ptr) Variable Output
|
||||
86: TypeImage 6(float) 1D sampled format:Unknown
|
||||
87: TypePointer UniformConstant 86
|
||||
88(g_tTex1df4a): 87(ptr) Variable UniformConstant
|
||||
@@ -352,7 +352,7 @@ gl_FragCoord origin is upper left
|
||||
Store 79(Color) 81
|
||||
84: 71(ptr) AccessChain 76(flattenTemp) 30
|
||||
85: 6(float) Load 84
|
||||
Store 83(Depth) 85
|
||||
Store 83(@entryPointOutput_Depth) 85
|
||||
Return
|
||||
FunctionEnd
|
||||
10(@main():8(PS_OUTPUT) Function None 9
|
||||
|
||||
Reference in New Issue
Block a user