1 hlsl.gather.offsetarray.dx10.frag 2 Shader version: 500 3 gl_FragCoord origin is upper left 4 using depth_any 5 0:? Sequence 6 0:20 Function Definition: @main( ( temp structure{ temp 4-component vector of float Color, temp float Depth}) 7 0:20 Function Parameters: 8 0:? Sequence 9 0:25 Sequence 10 0:25 move second child to first child ( temp 4-component vector of float) 11 0:25 'txval20' ( temp 4-component vector of float) 12 0:25 textureGatherOffset ( temp 4-component vector of float) 13 0:25 Construct combined texture-sampler ( temp sampler2DArray) 14 0:25 'g_tTex2df4' ( uniform texture2DArray) 15 0:25 'g_sSamp' (layout( binding=0) uniform sampler) 16 0:? Constant: 17 0:? 0.100000 18 0:? 0.200000 19 0:? 0.300000 20 0:? Constant: 21 0:? 1 (const int) 22 0:? 0 (const int) 23 0:26 Sequence 24 0:26 move second child to first child ( temp 4-component vector of int) 25 0:26 'txval21' ( temp 4-component vector of int) 26 0:26 textureGatherOffset ( temp 4-component vector of int) 27 0:26 Construct combined texture-sampler ( temp isampler2DArray) 28 0:26 'g_tTex2di4' ( uniform itexture2DArray) 29 0:26 'g_sSamp' (layout( binding=0) uniform sampler) 30 0:? Constant: 31 0:? 0.300000 32 0:? 0.400000 33 0:? 0.400000 34 0:? Constant: 35 0:? 1 (const int) 36 0:? 1 (const int) 37 0:27 Sequence 38 0:27 move second child to first child ( temp 4-component vector of uint) 39 0:27 'txval22' ( temp 4-component vector of uint) 40 0:27 textureGatherOffset ( temp 4-component vector of uint) 41 0:27 Construct combined texture-sampler ( temp usampler2DArray) 42 0:27 'g_tTex2du4' ( uniform utexture2DArray) 43 0:27 'g_sSamp' (layout( binding=0) uniform sampler) 44 0:? Constant: 45 0:? 0.500000 46 0:? 0.600000 47 0:? 0.700000 48 0:? Constant: 49 0:? 1 (const int) 50 0:? -1 (const int) 51 0:32 move second child to first child ( temp 4-component vector of float) 52 0:32 Color: direct index for structure ( temp 4-component vector of float) 53 0:32 'psout' ( temp structure{ temp 4-component vector of float Color, temp float Depth}) 54 0:32 Constant: 55 0:32 0 (const int) 56 0:32 Constant: 57 0:32 1.000000 58 0:32 1.000000 59 0:32 1.000000 60 0:32 1.000000 61 0:33 move second child to first child ( temp float) 62 0:33 Depth: direct index for structure ( temp float) 63 0:33 'psout' ( temp structure{ temp 4-component vector of float Color, temp float Depth}) 64 0:33 Constant: 65 0:33 1 (const int) 66 0:33 Constant: 67 0:33 1.000000 68 0:35 Branch: Return with expression 69 0:35 'psout' ( temp structure{ temp 4-component vector of float Color, temp float Depth}) 70 0:20 Function Definition: main( ( temp void) 71 0:20 Function Parameters: 72 0:? Sequence 73 0:20 Sequence 74 0:20 move second child to first child ( temp structure{ temp 4-component vector of float Color, temp float Depth}) 75 0:20 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth}) 76 0:20 Function Call: @main( ( temp structure{ temp 4-component vector of float Color, temp float Depth}) 77 0:20 move second child to first child ( temp 4-component vector of float) 78 0:? '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float) 79 0:20 Color: direct index for structure ( temp 4-component vector of float) 80 0:20 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth}) 81 0:20 Constant: 82 0:20 0 (const int) 83 0:20 move second child to first child ( temp float) 84 0:? '@entryPointOutput.Depth' ( out float FragDepth) 85 0:20 Depth: direct index for structure ( temp float) 86 0:20 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth}) 87 0:20 Constant: 88 0:20 1 (const int) 89 0:? Linker Objects 90 0:? 'g_sSamp' (layout( binding=0) uniform sampler) 91 0:? 'g_tTex1df4a' (layout( binding=1) uniform texture1DArray) 92 0:? 'g_tTex1df4' (layout( binding=0) uniform texture1DArray) 93 0:? 'g_tTex1di4' ( uniform itexture1DArray) 94 0:? 'g_tTex1du4' ( uniform utexture1DArray) 95 0:? 'g_tTex2df4' ( uniform texture2DArray) 96 0:? 'g_tTex2di4' ( uniform itexture2DArray) 97 0:? 'g_tTex2du4' ( uniform utexture2DArray) 98 0:? '@entryPointOutput.Depth' ( out float FragDepth) 99 0:? '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float) 100 101 102 Linked fragment stage: 103 104 105 Shader version: 500 106 gl_FragCoord origin is upper left 107 using depth_any 108 0:? Sequence 109 0:20 Function Definition: @main( ( temp structure{ temp 4-component vector of float Color, temp float Depth}) 110 0:20 Function Parameters: 111 0:? Sequence 112 0:25 Sequence 113 0:25 move second child to first child ( temp 4-component vector of float) 114 0:25 'txval20' ( temp 4-component vector of float) 115 0:25 textureGatherOffset ( temp 4-component vector of float) 116 0:25 Construct combined texture-sampler ( temp sampler2DArray) 117 0:25 'g_tTex2df4' ( uniform texture2DArray) 118 0:25 'g_sSamp' (layout( binding=0) uniform sampler) 119 0:? Constant: 120 0:? 0.100000 121 0:? 0.200000 122 0:? 0.300000 123 0:? Constant: 124 0:? 1 (const int) 125 0:? 0 (const int) 126 0:26 Sequence 127 0:26 move second child to first child ( temp 4-component vector of int) 128 0:26 'txval21' ( temp 4-component vector of int) 129 0:26 textureGatherOffset ( temp 4-component vector of int) 130 0:26 Construct combined texture-sampler ( temp isampler2DArray) 131 0:26 'g_tTex2di4' ( uniform itexture2DArray) 132 0:26 'g_sSamp' (layout( binding=0) uniform sampler) 133 0:? Constant: 134 0:? 0.300000 135 0:? 0.400000 136 0:? 0.400000 137 0:? Constant: 138 0:? 1 (const int) 139 0:? 1 (const int) 140 0:27 Sequence 141 0:27 move second child to first child ( temp 4-component vector of uint) 142 0:27 'txval22' ( temp 4-component vector of uint) 143 0:27 textureGatherOffset ( temp 4-component vector of uint) 144 0:27 Construct combined texture-sampler ( temp usampler2DArray) 145 0:27 'g_tTex2du4' ( uniform utexture2DArray) 146 0:27 'g_sSamp' (layout( binding=0) uniform sampler) 147 0:? Constant: 148 0:? 0.500000 149 0:? 0.600000 150 0:? 0.700000 151 0:? Constant: 152 0:? 1 (const int) 153 0:? -1 (const int) 154 0:32 move second child to first child ( temp 4-component vector of float) 155 0:32 Color: direct index for structure ( temp 4-component vector of float) 156 0:32 'psout' ( temp structure{ temp 4-component vector of float Color, temp float Depth}) 157 0:32 Constant: 158 0:32 0 (const int) 159 0:32 Constant: 160 0:32 1.000000 161 0:32 1.000000 162 0:32 1.000000 163 0:32 1.000000 164 0:33 move second child to first child ( temp float) 165 0:33 Depth: direct index for structure ( temp float) 166 0:33 'psout' ( temp structure{ temp 4-component vector of float Color, temp float Depth}) 167 0:33 Constant: 168 0:33 1 (const int) 169 0:33 Constant: 170 0:33 1.000000 171 0:35 Branch: Return with expression 172 0:35 'psout' ( temp structure{ temp 4-component vector of float Color, temp float Depth}) 173 0:20 Function Definition: main( ( temp void) 174 0:20 Function Parameters: 175 0:? Sequence 176 0:20 Sequence 177 0:20 move second child to first child ( temp structure{ temp 4-component vector of float Color, temp float Depth}) 178 0:20 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth}) 179 0:20 Function Call: @main( ( temp structure{ temp 4-component vector of float Color, temp float Depth}) 180 0:20 move second child to first child ( temp 4-component vector of float) 181 0:? '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float) 182 0:20 Color: direct index for structure ( temp 4-component vector of float) 183 0:20 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth}) 184 0:20 Constant: 185 0:20 0 (const int) 186 0:20 move second child to first child ( temp float) 187 0:? '@entryPointOutput.Depth' ( out float FragDepth) 188 0:20 Depth: direct index for structure ( temp float) 189 0:20 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth}) 190 0:20 Constant: 191 0:20 1 (const int) 192 0:? Linker Objects 193 0:? 'g_sSamp' (layout( binding=0) uniform sampler) 194 0:? 'g_tTex1df4a' (layout( binding=1) uniform texture1DArray) 195 0:? 'g_tTex1df4' (layout( binding=0) uniform texture1DArray) 196 0:? 'g_tTex1di4' ( uniform itexture1DArray) 197 0:? 'g_tTex1du4' ( uniform utexture1DArray) 198 0:? 'g_tTex2df4' ( uniform texture2DArray) 199 0:? 'g_tTex2di4' ( uniform itexture2DArray) 200 0:? 'g_tTex2du4' ( uniform utexture2DArray) 201 0:? '@entryPointOutput.Depth' ( out float FragDepth) 202 0:? '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float) 203 204 // Module Version 10000 205 // Generated by (magic number): 80007 206 // Id's are bound by 97 207 208 Capability Shader 209 Capability Sampled1D 210 1: ExtInstImport "GLSL.std.450" 211 MemoryModel Logical GLSL450 212 EntryPoint Fragment 4 "main" 80 84 213 ExecutionMode 4 OriginUpperLeft 214 ExecutionMode 4 DepthReplacing 215 Source HLSL 500 216 Name 4 "main" 217 Name 8 "PS_OUTPUT" 218 MemberName 8(PS_OUTPUT) 0 "Color" 219 MemberName 8(PS_OUTPUT) 1 "Depth" 220 Name 10 "@main(" 221 Name 13 "txval20" 222 Name 16 "g_tTex2df4" 223 Name 20 "g_sSamp" 224 Name 37 "txval21" 225 Name 40 "g_tTex2di4" 226 Name 52 "txval22" 227 Name 55 "g_tTex2du4" 228 Name 68 "psout" 229 Name 77 "flattenTemp" 230 Name 80 "@entryPointOutput.Color" 231 Name 84 "@entryPointOutput.Depth" 232 Name 89 "g_tTex1df4a" 233 Name 90 "g_tTex1df4" 234 Name 93 "g_tTex1di4" 235 Name 96 "g_tTex1du4" 236 Decorate 16(g_tTex2df4) DescriptorSet 0 237 Decorate 16(g_tTex2df4) Binding 0 238 Decorate 20(g_sSamp) DescriptorSet 0 239 Decorate 20(g_sSamp) Binding 0 240 Decorate 40(g_tTex2di4) DescriptorSet 0 241 Decorate 40(g_tTex2di4) Binding 0 242 Decorate 55(g_tTex2du4) DescriptorSet 0 243 Decorate 55(g_tTex2du4) Binding 0 244 Decorate 80(@entryPointOutput.Color) Location 0 245 Decorate 84(@entryPointOutput.Depth) BuiltIn FragDepth 246 Decorate 89(g_tTex1df4a) DescriptorSet 0 247 Decorate 89(g_tTex1df4a) Binding 1 248 Decorate 90(g_tTex1df4) DescriptorSet 0 249 Decorate 90(g_tTex1df4) Binding 0 250 Decorate 93(g_tTex1di4) DescriptorSet 0 251 Decorate 93(g_tTex1di4) Binding 0 252 Decorate 96(g_tTex1du4) DescriptorSet 0 253 Decorate 96(g_tTex1du4) Binding 0 254 2: TypeVoid 255 3: TypeFunction 2 256 6: TypeFloat 32 257 7: TypeVector 6(float) 4 258 8(PS_OUTPUT): TypeStruct 7(fvec4) 6(float) 259 9: TypeFunction 8(PS_OUTPUT) 260 12: TypePointer Function 7(fvec4) 261 14: TypeImage 6(float) 2D array sampled format:Unknown 262 15: TypePointer UniformConstant 14 263 16(g_tTex2df4): 15(ptr) Variable UniformConstant 264 18: TypeSampler 265 19: TypePointer UniformConstant 18 266 20(g_sSamp): 19(ptr) Variable UniformConstant 267 22: TypeSampledImage 14 268 24: TypeVector 6(float) 3 269 25: 6(float) Constant 1036831949 270 26: 6(float) Constant 1045220557 271 27: 6(float) Constant 1050253722 272 28: 24(fvec3) ConstantComposite 25 26 27 273 29: TypeInt 32 1 274 30: TypeVector 29(int) 2 275 31: 29(int) Constant 1 276 32: 29(int) Constant 0 277 33: 30(ivec2) ConstantComposite 31 32 278 35: TypeVector 29(int) 4 279 36: TypePointer Function 35(ivec4) 280 38: TypeImage 29(int) 2D array sampled format:Unknown 281 39: TypePointer UniformConstant 38 282 40(g_tTex2di4): 39(ptr) Variable UniformConstant 283 43: TypeSampledImage 38 284 45: 6(float) Constant 1053609165 285 46: 24(fvec3) ConstantComposite 27 45 45 286 47: 30(ivec2) ConstantComposite 31 31 287 49: TypeInt 32 0 288 50: TypeVector 49(int) 4 289 51: TypePointer Function 50(ivec4) 290 53: TypeImage 49(int) 2D array sampled format:Unknown 291 54: TypePointer UniformConstant 53 292 55(g_tTex2du4): 54(ptr) Variable UniformConstant 293 58: TypeSampledImage 53 294 60: 6(float) Constant 1056964608 295 61: 6(float) Constant 1058642330 296 62: 6(float) Constant 1060320051 297 63: 24(fvec3) ConstantComposite 60 61 62 298 64: 29(int) Constant 4294967295 299 65: 30(ivec2) ConstantComposite 31 64 300 67: TypePointer Function 8(PS_OUTPUT) 301 69: 6(float) Constant 1065353216 302 70: 7(fvec4) ConstantComposite 69 69 69 69 303 72: TypePointer Function 6(float) 304 79: TypePointer Output 7(fvec4) 305 80(@entryPointOutput.Color): 79(ptr) Variable Output 306 83: TypePointer Output 6(float) 307 84(@entryPointOutput.Depth): 83(ptr) Variable Output 308 87: TypeImage 6(float) 1D array sampled format:Unknown 309 88: TypePointer UniformConstant 87 310 89(g_tTex1df4a): 88(ptr) Variable UniformConstant 311 90(g_tTex1df4): 88(ptr) Variable UniformConstant 312 91: TypeImage 29(int) 1D array sampled format:Unknown 313 92: TypePointer UniformConstant 91 314 93(g_tTex1di4): 92(ptr) Variable UniformConstant 315 94: TypeImage 49(int) 1D array sampled format:Unknown 316 95: TypePointer UniformConstant 94 317 96(g_tTex1du4): 95(ptr) Variable UniformConstant 318 4(main): 2 Function None 3 319 5: Label 320 77(flattenTemp): 67(ptr) Variable Function 321 78:8(PS_OUTPUT) FunctionCall 10(@main() 322 Store 77(flattenTemp) 78 323 81: 12(ptr) AccessChain 77(flattenTemp) 32 324 82: 7(fvec4) Load 81 325 Store 80(@entryPointOutput.Color) 82 326 85: 72(ptr) AccessChain 77(flattenTemp) 31 327 86: 6(float) Load 85 328 Store 84(@entryPointOutput.Depth) 86 329 Return 330 FunctionEnd 331 10(@main():8(PS_OUTPUT) Function None 9 332 11: Label 333 13(txval20): 12(ptr) Variable Function 334 37(txval21): 36(ptr) Variable Function 335 52(txval22): 51(ptr) Variable Function 336 68(psout): 67(ptr) Variable Function 337 17: 14 Load 16(g_tTex2df4) 338 21: 18 Load 20(g_sSamp) 339 23: 22 SampledImage 17 21 340 34: 7(fvec4) ImageGather 23 28 32 ConstOffset 33 341 Store 13(txval20) 34 342 41: 38 Load 40(g_tTex2di4) 343 42: 18 Load 20(g_sSamp) 344 44: 43 SampledImage 41 42 345 48: 35(ivec4) ImageGather 44 46 32 ConstOffset 47 346 Store 37(txval21) 48 347 56: 53 Load 55(g_tTex2du4) 348 57: 18 Load 20(g_sSamp) 349 59: 58 SampledImage 56 57 350 66: 50(ivec4) ImageGather 59 63 32 ConstOffset 65 351 Store 52(txval22) 66 352 71: 12(ptr) AccessChain 68(psout) 32 353 Store 71 70 354 73: 72(ptr) AccessChain 68(psout) 31 355 Store 73 69 356 74:8(PS_OUTPUT) Load 68(psout) 357 ReturnValue 74 358 FunctionEnd 359