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