1 hlsl.clipdistance-6.frag 2 Shader version: 500 3 gl_FragCoord origin is upper left 4 0:? Sequence 5 0:8 Function Definition: @main(struct-VS_OUTPUT-vf4-vf4-vf41; ( temp 4-component vector of float) 6 0:8 Function Parameters: 7 0:8 'v' ( in structure{ temp 4-component vector of float Position, temp 4-component vector of float clip0, temp 4-component vector of float clip1}) 8 0:? Sequence 9 0:9 Branch: Return with expression 10 0:9 add ( temp 4-component vector of float) 11 0:9 add ( temp 4-component vector of float) 12 0:9 Position: direct index for structure ( temp 4-component vector of float) 13 0:9 'v' ( in structure{ temp 4-component vector of float Position, temp 4-component vector of float clip0, temp 4-component vector of float clip1}) 14 0:9 Constant: 15 0:9 0 (const int) 16 0:9 clip0: direct index for structure ( temp 4-component vector of float) 17 0:9 'v' ( in structure{ temp 4-component vector of float Position, temp 4-component vector of float clip0, temp 4-component vector of float clip1}) 18 0:9 Constant: 19 0:9 1 (const int) 20 0:9 clip1: direct index for structure ( temp 4-component vector of float) 21 0:9 'v' ( in structure{ temp 4-component vector of float Position, temp 4-component vector of float clip0, temp 4-component vector of float clip1}) 22 0:9 Constant: 23 0:9 2 (const int) 24 0:8 Function Definition: main( ( temp void) 25 0:8 Function Parameters: 26 0:? Sequence 27 0:8 Sequence 28 0:8 move second child to first child ( temp 4-component vector of float) 29 0:8 Position: direct index for structure ( temp 4-component vector of float) 30 0:? 'v' ( temp structure{ temp 4-component vector of float Position, temp 4-component vector of float clip0, temp 4-component vector of float clip1}) 31 0:8 Constant: 32 0:8 0 (const int) 33 0:? 'v.Position' ( in 4-component vector of float FragCoord) 34 0:? Sequence 35 0:8 move second child to first child ( temp float) 36 0:8 direct index ( temp float) 37 0:8 clip0: direct index for structure ( temp 4-component vector of float) 38 0:? 'v' ( temp structure{ temp 4-component vector of float Position, temp 4-component vector of float clip0, temp 4-component vector of float clip1}) 39 0:8 Constant: 40 0:8 1 (const int) 41 0:8 Constant: 42 0:8 0 (const int) 43 0:8 direct index ( in float ClipDistance) 44 0:? 'v.clip1' ( in 8-element array of float ClipDistance) 45 0:8 Constant: 46 0:8 0 (const int) 47 0:8 move second child to first child ( temp float) 48 0:8 direct index ( temp float) 49 0:8 clip0: direct index for structure ( temp 4-component vector of float) 50 0:? 'v' ( temp structure{ temp 4-component vector of float Position, temp 4-component vector of float clip0, temp 4-component vector of float clip1}) 51 0:8 Constant: 52 0:8 1 (const int) 53 0:8 Constant: 54 0:8 1 (const int) 55 0:8 direct index ( in float ClipDistance) 56 0:? 'v.clip1' ( in 8-element array of float ClipDistance) 57 0:8 Constant: 58 0:8 1 (const int) 59 0:8 move second child to first child ( temp float) 60 0:8 direct index ( temp float) 61 0:8 clip0: direct index for structure ( temp 4-component vector of float) 62 0:? 'v' ( temp structure{ temp 4-component vector of float Position, temp 4-component vector of float clip0, temp 4-component vector of float clip1}) 63 0:8 Constant: 64 0:8 1 (const int) 65 0:8 Constant: 66 0:8 2 (const int) 67 0:8 direct index ( in float ClipDistance) 68 0:? 'v.clip1' ( in 8-element array of float ClipDistance) 69 0:8 Constant: 70 0:8 2 (const int) 71 0:8 move second child to first child ( temp float) 72 0:8 direct index ( temp float) 73 0:8 clip0: direct index for structure ( temp 4-component vector of float) 74 0:? 'v' ( temp structure{ temp 4-component vector of float Position, temp 4-component vector of float clip0, temp 4-component vector of float clip1}) 75 0:8 Constant: 76 0:8 1 (const int) 77 0:8 Constant: 78 0:8 3 (const int) 79 0:8 direct index ( in float ClipDistance) 80 0:? 'v.clip1' ( in 8-element array of float ClipDistance) 81 0:8 Constant: 82 0:8 3 (const int) 83 0:? Sequence 84 0:8 move second child to first child ( temp float) 85 0:8 direct index ( temp float) 86 0:8 clip1: direct index for structure ( temp 4-component vector of float) 87 0:? 'v' ( temp structure{ temp 4-component vector of float Position, temp 4-component vector of float clip0, temp 4-component vector of float clip1}) 88 0:8 Constant: 89 0:8 2 (const int) 90 0:8 Constant: 91 0:8 0 (const int) 92 0:8 direct index ( in float ClipDistance) 93 0:? 'v.clip1' ( in 8-element array of float ClipDistance) 94 0:8 Constant: 95 0:8 4 (const int) 96 0:8 move second child to first child ( temp float) 97 0:8 direct index ( temp float) 98 0:8 clip1: direct index for structure ( temp 4-component vector of float) 99 0:? 'v' ( temp structure{ temp 4-component vector of float Position, temp 4-component vector of float clip0, temp 4-component vector of float clip1}) 100 0:8 Constant: 101 0:8 2 (const int) 102 0:8 Constant: 103 0:8 1 (const int) 104 0:8 direct index ( in float ClipDistance) 105 0:? 'v.clip1' ( in 8-element array of float ClipDistance) 106 0:8 Constant: 107 0:8 5 (const int) 108 0:8 move second child to first child ( temp float) 109 0:8 direct index ( temp float) 110 0:8 clip1: direct index for structure ( temp 4-component vector of float) 111 0:? 'v' ( temp structure{ temp 4-component vector of float Position, temp 4-component vector of float clip0, temp 4-component vector of float clip1}) 112 0:8 Constant: 113 0:8 2 (const int) 114 0:8 Constant: 115 0:8 2 (const int) 116 0:8 direct index ( in float ClipDistance) 117 0:? 'v.clip1' ( in 8-element array of float ClipDistance) 118 0:8 Constant: 119 0:8 6 (const int) 120 0:8 move second child to first child ( temp float) 121 0:8 direct index ( temp float) 122 0:8 clip1: direct index for structure ( temp 4-component vector of float) 123 0:? 'v' ( temp structure{ temp 4-component vector of float Position, temp 4-component vector of float clip0, temp 4-component vector of float clip1}) 124 0:8 Constant: 125 0:8 2 (const int) 126 0:8 Constant: 127 0:8 3 (const int) 128 0:8 direct index ( in float ClipDistance) 129 0:? 'v.clip1' ( in 8-element array of float ClipDistance) 130 0:8 Constant: 131 0:8 7 (const int) 132 0:8 move second child to first child ( temp 4-component vector of float) 133 0:? '@entryPointOutput' (layout( location=0) out 4-component vector of float) 134 0:8 Function Call: @main(struct-VS_OUTPUT-vf4-vf4-vf41; ( temp 4-component vector of float) 135 0:? 'v' ( temp structure{ temp 4-component vector of float Position, temp 4-component vector of float clip0, temp 4-component vector of float clip1}) 136 0:? Linker Objects 137 0:? '@entryPointOutput' (layout( location=0) out 4-component vector of float) 138 0:? 'v.Position' ( in 4-component vector of float FragCoord) 139 0:? 'v.clip1' ( in 8-element array of float ClipDistance) 140 141 142 Linked fragment stage: 143 144 145 Shader version: 500 146 gl_FragCoord origin is upper left 147 0:? Sequence 148 0:8 Function Definition: @main(struct-VS_OUTPUT-vf4-vf4-vf41; ( temp 4-component vector of float) 149 0:8 Function Parameters: 150 0:8 'v' ( in structure{ temp 4-component vector of float Position, temp 4-component vector of float clip0, temp 4-component vector of float clip1}) 151 0:? Sequence 152 0:9 Branch: Return with expression 153 0:9 add ( temp 4-component vector of float) 154 0:9 add ( temp 4-component vector of float) 155 0:9 Position: direct index for structure ( temp 4-component vector of float) 156 0:9 'v' ( in structure{ temp 4-component vector of float Position, temp 4-component vector of float clip0, temp 4-component vector of float clip1}) 157 0:9 Constant: 158 0:9 0 (const int) 159 0:9 clip0: direct index for structure ( temp 4-component vector of float) 160 0:9 'v' ( in structure{ temp 4-component vector of float Position, temp 4-component vector of float clip0, temp 4-component vector of float clip1}) 161 0:9 Constant: 162 0:9 1 (const int) 163 0:9 clip1: direct index for structure ( temp 4-component vector of float) 164 0:9 'v' ( in structure{ temp 4-component vector of float Position, temp 4-component vector of float clip0, temp 4-component vector of float clip1}) 165 0:9 Constant: 166 0:9 2 (const int) 167 0:8 Function Definition: main( ( temp void) 168 0:8 Function Parameters: 169 0:? Sequence 170 0:8 Sequence 171 0:8 move second child to first child ( temp 4-component vector of float) 172 0:8 Position: direct index for structure ( temp 4-component vector of float) 173 0:? 'v' ( temp structure{ temp 4-component vector of float Position, temp 4-component vector of float clip0, temp 4-component vector of float clip1}) 174 0:8 Constant: 175 0:8 0 (const int) 176 0:? 'v.Position' ( in 4-component vector of float FragCoord) 177 0:? Sequence 178 0:8 move second child to first child ( temp float) 179 0:8 direct index ( temp float) 180 0:8 clip0: direct index for structure ( temp 4-component vector of float) 181 0:? 'v' ( temp structure{ temp 4-component vector of float Position, temp 4-component vector of float clip0, temp 4-component vector of float clip1}) 182 0:8 Constant: 183 0:8 1 (const int) 184 0:8 Constant: 185 0:8 0 (const int) 186 0:8 direct index ( in float ClipDistance) 187 0:? 'v.clip1' ( in 8-element array of float ClipDistance) 188 0:8 Constant: 189 0:8 0 (const int) 190 0:8 move second child to first child ( temp float) 191 0:8 direct index ( temp float) 192 0:8 clip0: direct index for structure ( temp 4-component vector of float) 193 0:? 'v' ( temp structure{ temp 4-component vector of float Position, temp 4-component vector of float clip0, temp 4-component vector of float clip1}) 194 0:8 Constant: 195 0:8 1 (const int) 196 0:8 Constant: 197 0:8 1 (const int) 198 0:8 direct index ( in float ClipDistance) 199 0:? 'v.clip1' ( in 8-element array of float ClipDistance) 200 0:8 Constant: 201 0:8 1 (const int) 202 0:8 move second child to first child ( temp float) 203 0:8 direct index ( temp float) 204 0:8 clip0: direct index for structure ( temp 4-component vector of float) 205 0:? 'v' ( temp structure{ temp 4-component vector of float Position, temp 4-component vector of float clip0, temp 4-component vector of float clip1}) 206 0:8 Constant: 207 0:8 1 (const int) 208 0:8 Constant: 209 0:8 2 (const int) 210 0:8 direct index ( in float ClipDistance) 211 0:? 'v.clip1' ( in 8-element array of float ClipDistance) 212 0:8 Constant: 213 0:8 2 (const int) 214 0:8 move second child to first child ( temp float) 215 0:8 direct index ( temp float) 216 0:8 clip0: direct index for structure ( temp 4-component vector of float) 217 0:? 'v' ( temp structure{ temp 4-component vector of float Position, temp 4-component vector of float clip0, temp 4-component vector of float clip1}) 218 0:8 Constant: 219 0:8 1 (const int) 220 0:8 Constant: 221 0:8 3 (const int) 222 0:8 direct index ( in float ClipDistance) 223 0:? 'v.clip1' ( in 8-element array of float ClipDistance) 224 0:8 Constant: 225 0:8 3 (const int) 226 0:? Sequence 227 0:8 move second child to first child ( temp float) 228 0:8 direct index ( temp float) 229 0:8 clip1: direct index for structure ( temp 4-component vector of float) 230 0:? 'v' ( temp structure{ temp 4-component vector of float Position, temp 4-component vector of float clip0, temp 4-component vector of float clip1}) 231 0:8 Constant: 232 0:8 2 (const int) 233 0:8 Constant: 234 0:8 0 (const int) 235 0:8 direct index ( in float ClipDistance) 236 0:? 'v.clip1' ( in 8-element array of float ClipDistance) 237 0:8 Constant: 238 0:8 4 (const int) 239 0:8 move second child to first child ( temp float) 240 0:8 direct index ( temp float) 241 0:8 clip1: direct index for structure ( temp 4-component vector of float) 242 0:? 'v' ( temp structure{ temp 4-component vector of float Position, temp 4-component vector of float clip0, temp 4-component vector of float clip1}) 243 0:8 Constant: 244 0:8 2 (const int) 245 0:8 Constant: 246 0:8 1 (const int) 247 0:8 direct index ( in float ClipDistance) 248 0:? 'v.clip1' ( in 8-element array of float ClipDistance) 249 0:8 Constant: 250 0:8 5 (const int) 251 0:8 move second child to first child ( temp float) 252 0:8 direct index ( temp float) 253 0:8 clip1: direct index for structure ( temp 4-component vector of float) 254 0:? 'v' ( temp structure{ temp 4-component vector of float Position, temp 4-component vector of float clip0, temp 4-component vector of float clip1}) 255 0:8 Constant: 256 0:8 2 (const int) 257 0:8 Constant: 258 0:8 2 (const int) 259 0:8 direct index ( in float ClipDistance) 260 0:? 'v.clip1' ( in 8-element array of float ClipDistance) 261 0:8 Constant: 262 0:8 6 (const int) 263 0:8 move second child to first child ( temp float) 264 0:8 direct index ( temp float) 265 0:8 clip1: direct index for structure ( temp 4-component vector of float) 266 0:? 'v' ( temp structure{ temp 4-component vector of float Position, temp 4-component vector of float clip0, temp 4-component vector of float clip1}) 267 0:8 Constant: 268 0:8 2 (const int) 269 0:8 Constant: 270 0:8 3 (const int) 271 0:8 direct index ( in float ClipDistance) 272 0:? 'v.clip1' ( in 8-element array of float ClipDistance) 273 0:8 Constant: 274 0:8 7 (const int) 275 0:8 move second child to first child ( temp 4-component vector of float) 276 0:? '@entryPointOutput' (layout( location=0) out 4-component vector of float) 277 0:8 Function Call: @main(struct-VS_OUTPUT-vf4-vf4-vf41; ( temp 4-component vector of float) 278 0:? 'v' ( temp structure{ temp 4-component vector of float Position, temp 4-component vector of float clip0, temp 4-component vector of float clip1}) 279 0:? Linker Objects 280 0:? '@entryPointOutput' (layout( location=0) out 4-component vector of float) 281 0:? 'v.Position' ( in 4-component vector of float FragCoord) 282 0:? 'v.clip1' ( in 8-element array of float ClipDistance) 283 284 // Module Version 10000 285 // Generated by (magic number): 80007 286 // Id's are bound by 79 287 288 Capability Shader 289 Capability ClipDistance 290 1: ExtInstImport "GLSL.std.450" 291 MemoryModel Logical GLSL450 292 EntryPoint Fragment 4 "main" 31 38 75 293 ExecutionMode 4 OriginUpperLeft 294 Source HLSL 500 295 Name 4 "main" 296 Name 8 "VS_OUTPUT" 297 MemberName 8(VS_OUTPUT) 0 "Position" 298 MemberName 8(VS_OUTPUT) 1 "clip0" 299 MemberName 8(VS_OUTPUT) 2 "clip1" 300 Name 12 "@main(struct-VS_OUTPUT-vf4-vf4-vf41;" 301 Name 11 "v" 302 Name 29 "v" 303 Name 31 "v.Position" 304 Name 38 "v.clip1" 305 Name 75 "@entryPointOutput" 306 Name 76 "param" 307 Decorate 31(v.Position) BuiltIn FragCoord 308 Decorate 38(v.clip1) BuiltIn ClipDistance 309 Decorate 75(@entryPointOutput) Location 0 310 2: TypeVoid 311 3: TypeFunction 2 312 6: TypeFloat 32 313 7: TypeVector 6(float) 4 314 8(VS_OUTPUT): TypeStruct 7(fvec4) 7(fvec4) 7(fvec4) 315 9: TypePointer Function 8(VS_OUTPUT) 316 10: TypeFunction 7(fvec4) 9(ptr) 317 14: TypeInt 32 1 318 15: 14(int) Constant 0 319 16: TypePointer Function 7(fvec4) 320 19: 14(int) Constant 1 321 23: 14(int) Constant 2 322 30: TypePointer Input 7(fvec4) 323 31(v.Position): 30(ptr) Variable Input 324 34: TypeInt 32 0 325 35: 34(int) Constant 8 326 36: TypeArray 6(float) 35 327 37: TypePointer Input 36 328 38(v.clip1): 37(ptr) Variable Input 329 39: TypePointer Input 6(float) 330 42: 34(int) Constant 0 331 43: TypePointer Function 6(float) 332 47: 34(int) Constant 1 333 51: 34(int) Constant 2 334 53: 14(int) Constant 3 335 56: 34(int) Constant 3 336 58: 14(int) Constant 4 337 62: 14(int) Constant 5 338 66: 14(int) Constant 6 339 70: 14(int) Constant 7 340 74: TypePointer Output 7(fvec4) 341 75(@entryPointOutput): 74(ptr) Variable Output 342 4(main): 2 Function None 3 343 5: Label 344 29(v): 9(ptr) Variable Function 345 76(param): 9(ptr) Variable Function 346 32: 7(fvec4) Load 31(v.Position) 347 33: 16(ptr) AccessChain 29(v) 15 348 Store 33 32 349 40: 39(ptr) AccessChain 38(v.clip1) 15 350 41: 6(float) Load 40 351 44: 43(ptr) AccessChain 29(v) 19 42 352 Store 44 41 353 45: 39(ptr) AccessChain 38(v.clip1) 19 354 46: 6(float) Load 45 355 48: 43(ptr) AccessChain 29(v) 19 47 356 Store 48 46 357 49: 39(ptr) AccessChain 38(v.clip1) 23 358 50: 6(float) Load 49 359 52: 43(ptr) AccessChain 29(v) 19 51 360 Store 52 50 361 54: 39(ptr) AccessChain 38(v.clip1) 53 362 55: 6(float) Load 54 363 57: 43(ptr) AccessChain 29(v) 19 56 364 Store 57 55 365 59: 39(ptr) AccessChain 38(v.clip1) 58 366 60: 6(float) Load 59 367 61: 43(ptr) AccessChain 29(v) 23 42 368 Store 61 60 369 63: 39(ptr) AccessChain 38(v.clip1) 62 370 64: 6(float) Load 63 371 65: 43(ptr) AccessChain 29(v) 23 47 372 Store 65 64 373 67: 39(ptr) AccessChain 38(v.clip1) 66 374 68: 6(float) Load 67 375 69: 43(ptr) AccessChain 29(v) 23 51 376 Store 69 68 377 71: 39(ptr) AccessChain 38(v.clip1) 70 378 72: 6(float) Load 71 379 73: 43(ptr) AccessChain 29(v) 23 56 380 Store 73 72 381 77:8(VS_OUTPUT) Load 29(v) 382 Store 76(param) 77 383 78: 7(fvec4) FunctionCall 12(@main(struct-VS_OUTPUT-vf4-vf4-vf41;) 76(param) 384 Store 75(@entryPointOutput) 78 385 Return 386 FunctionEnd 387 12(@main(struct-VS_OUTPUT-vf4-vf4-vf41;): 7(fvec4) Function None 10 388 11(v): 9(ptr) FunctionParameter 389 13: Label 390 17: 16(ptr) AccessChain 11(v) 15 391 18: 7(fvec4) Load 17 392 20: 16(ptr) AccessChain 11(v) 19 393 21: 7(fvec4) Load 20 394 22: 7(fvec4) FAdd 18 21 395 24: 16(ptr) AccessChain 11(v) 23 396 25: 7(fvec4) Load 24 397 26: 7(fvec4) FAdd 22 25 398 ReturnValue 26 399 FunctionEnd 400