HLSL: Include built-in processing for vertex input and fragment output flattening.
This commit is contained in:
@@ -101,7 +101,7 @@ gl_FragCoord origin is upper left
|
||||
0:29 Constant:
|
||||
0:29 0 (const int)
|
||||
0:29 move second child to first child ( temp float)
|
||||
0:? 'Depth' ( out float FragDepth)
|
||||
0:? '@entryPointOutput_Depth' ( out float FragDepth)
|
||||
0:29 Depth: direct index for structure ( temp float)
|
||||
0:29 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
|
||||
0:29 Constant:
|
||||
@@ -122,8 +122,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:
|
||||
@@ -231,7 +231,7 @@ gl_FragCoord origin is upper left
|
||||
0:29 Constant:
|
||||
0:29 0 (const int)
|
||||
0:29 move second child to first child ( temp float)
|
||||
0:? 'Depth' ( out float FragDepth)
|
||||
0:? '@entryPointOutput_Depth' ( out float FragDepth)
|
||||
0:29 Depth: direct index for structure ( temp float)
|
||||
0:29 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
|
||||
0:29 Constant:
|
||||
@@ -252,8 +252,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
|
||||
@@ -287,7 +287,7 @@ gl_FragCoord origin is upper left
|
||||
Name 95 "psout"
|
||||
Name 105 "flattenTemp"
|
||||
Name 108 "Color"
|
||||
Name 112 "Depth"
|
||||
Name 112 "@entryPointOutput_Depth"
|
||||
Name 115 "g_sSamp2d"
|
||||
Name 118 "g_tTex1df4a"
|
||||
Name 119 "g_tTex1df4"
|
||||
@@ -305,7 +305,7 @@ gl_FragCoord origin is upper left
|
||||
Decorate 74(g_tTexcdi4) DescriptorSet 0
|
||||
Decorate 84(g_tTexcdu4) DescriptorSet 0
|
||||
Decorate 108(Color) Location 0
|
||||
Decorate 112(Depth) BuiltIn FragDepth
|
||||
Decorate 112(@entryPointOutput_Depth) BuiltIn FragDepth
|
||||
Decorate 115(g_sSamp2d) DescriptorSet 0
|
||||
Decorate 118(g_tTex1df4a) DescriptorSet 0
|
||||
Decorate 118(g_tTex1df4a) Binding 1
|
||||
@@ -382,7 +382,7 @@ gl_FragCoord origin is upper left
|
||||
107: TypePointer Output 7(fvec4)
|
||||
108(Color): 107(ptr) Variable Output
|
||||
111: TypePointer Output 6(float)
|
||||
112(Depth): 111(ptr) Variable Output
|
||||
112(@entryPointOutput_Depth): 111(ptr) Variable Output
|
||||
115(g_sSamp2d): 19(ptr) Variable UniformConstant
|
||||
116: TypeImage 6(float) 1D sampled format:Unknown
|
||||
117: TypePointer UniformConstant 116
|
||||
@@ -413,7 +413,7 @@ gl_FragCoord origin is upper left
|
||||
Store 108(Color) 110
|
||||
113: 100(ptr) AccessChain 105(flattenTemp) 99
|
||||
114: 6(float) Load 113
|
||||
Store 112(Depth) 114
|
||||
Store 112(@entryPointOutput_Depth) 114
|
||||
Return
|
||||
FunctionEnd
|
||||
10(@main():8(PS_OUTPUT) Function None 9
|
||||
|
||||
Reference in New Issue
Block a user