1 hlsl.clipdistance-9.frag 2 Shader version: 500 3 gl_FragCoord origin is upper left 4 0:? Sequence 5 0:6 Function Definition: @main(vf4;vf3;f1; ( temp 4-component vector of float) 6 0:6 Function Parameters: 7 0:6 'Position' ( in 4-component vector of float) 8 0:6 'clip0' ( in 3-component vector of float) 9 0:6 'clip1' ( in float) 10 0:? Sequence 11 0:7 Branch: Return with expression 12 0:7 add ( temp 4-component vector of float) 13 0:7 add ( temp 4-component vector of float) 14 0:7 'Position' ( in 4-component vector of float) 15 0:7 direct index ( temp float) 16 0:7 'clip0' ( in 3-component vector of float) 17 0:7 Constant: 18 0:7 0 (const int) 19 0:7 'clip1' ( in float) 20 0:6 Function Definition: main( ( temp void) 21 0:6 Function Parameters: 22 0:? Sequence 23 0:6 move second child to first child ( temp 4-component vector of float) 24 0:? 'Position' ( temp 4-component vector of float) 25 0:? 'Position' ( in 4-component vector of float FragCoord) 26 0:? Sequence 27 0:6 move second child to first child ( temp float) 28 0:6 direct index ( temp float) 29 0:? 'clip0' ( temp 3-component vector of float) 30 0:6 Constant: 31 0:6 0 (const int) 32 0:6 direct index ( in float ClipDistance) 33 0:? 'clip0' ( in 4-element array of float ClipDistance) 34 0:6 Constant: 35 0:6 0 (const int) 36 0:6 move second child to first child ( temp float) 37 0:6 direct index ( temp float) 38 0:? 'clip0' ( temp 3-component vector of float) 39 0:6 Constant: 40 0:6 1 (const int) 41 0:6 direct index ( in float ClipDistance) 42 0:? 'clip0' ( in 4-element array of float ClipDistance) 43 0:6 Constant: 44 0:6 1 (const int) 45 0:6 move second child to first child ( temp float) 46 0:6 direct index ( temp float) 47 0:? 'clip0' ( temp 3-component vector of float) 48 0:6 Constant: 49 0:6 2 (const int) 50 0:6 direct index ( in float ClipDistance) 51 0:? 'clip0' ( in 4-element array of float ClipDistance) 52 0:6 Constant: 53 0:6 2 (const int) 54 0:? Sequence 55 0:6 move second child to first child ( temp float) 56 0:? 'clip1' ( temp float) 57 0:6 direct index ( in float ClipDistance) 58 0:? 'clip0' ( in 4-element array of float ClipDistance) 59 0:6 Constant: 60 0:6 3 (const int) 61 0:6 move second child to first child ( temp 4-component vector of float) 62 0:? '@entryPointOutput' (layout( location=0) out 4-component vector of float) 63 0:6 Function Call: @main(vf4;vf3;f1; ( temp 4-component vector of float) 64 0:? 'Position' ( temp 4-component vector of float) 65 0:? 'clip0' ( temp 3-component vector of float) 66 0:? 'clip1' ( temp float) 67 0:? Linker Objects 68 0:? '@entryPointOutput' (layout( location=0) out 4-component vector of float) 69 0:? 'Position' ( in 4-component vector of float FragCoord) 70 0:? 'clip0' ( in 4-element array of float ClipDistance) 71 72 73 Linked fragment stage: 74 75 76 Shader version: 500 77 gl_FragCoord origin is upper left 78 0:? Sequence 79 0:6 Function Definition: @main(vf4;vf3;f1; ( temp 4-component vector of float) 80 0:6 Function Parameters: 81 0:6 'Position' ( in 4-component vector of float) 82 0:6 'clip0' ( in 3-component vector of float) 83 0:6 'clip1' ( in float) 84 0:? Sequence 85 0:7 Branch: Return with expression 86 0:7 add ( temp 4-component vector of float) 87 0:7 add ( temp 4-component vector of float) 88 0:7 'Position' ( in 4-component vector of float) 89 0:7 direct index ( temp float) 90 0:7 'clip0' ( in 3-component vector of float) 91 0:7 Constant: 92 0:7 0 (const int) 93 0:7 'clip1' ( in float) 94 0:6 Function Definition: main( ( temp void) 95 0:6 Function Parameters: 96 0:? Sequence 97 0:6 move second child to first child ( temp 4-component vector of float) 98 0:? 'Position' ( temp 4-component vector of float) 99 0:? 'Position' ( in 4-component vector of float FragCoord) 100 0:? Sequence 101 0:6 move second child to first child ( temp float) 102 0:6 direct index ( temp float) 103 0:? 'clip0' ( temp 3-component vector of float) 104 0:6 Constant: 105 0:6 0 (const int) 106 0:6 direct index ( in float ClipDistance) 107 0:? 'clip0' ( in 4-element array of float ClipDistance) 108 0:6 Constant: 109 0:6 0 (const int) 110 0:6 move second child to first child ( temp float) 111 0:6 direct index ( temp float) 112 0:? 'clip0' ( temp 3-component vector of float) 113 0:6 Constant: 114 0:6 1 (const int) 115 0:6 direct index ( in float ClipDistance) 116 0:? 'clip0' ( in 4-element array of float ClipDistance) 117 0:6 Constant: 118 0:6 1 (const int) 119 0:6 move second child to first child ( temp float) 120 0:6 direct index ( temp float) 121 0:? 'clip0' ( temp 3-component vector of float) 122 0:6 Constant: 123 0:6 2 (const int) 124 0:6 direct index ( in float ClipDistance) 125 0:? 'clip0' ( in 4-element array of float ClipDistance) 126 0:6 Constant: 127 0:6 2 (const int) 128 0:? Sequence 129 0:6 move second child to first child ( temp float) 130 0:? 'clip1' ( temp float) 131 0:6 direct index ( in float ClipDistance) 132 0:? 'clip0' ( in 4-element array of float ClipDistance) 133 0:6 Constant: 134 0:6 3 (const int) 135 0:6 move second child to first child ( temp 4-component vector of float) 136 0:? '@entryPointOutput' (layout( location=0) out 4-component vector of float) 137 0:6 Function Call: @main(vf4;vf3;f1; ( temp 4-component vector of float) 138 0:? 'Position' ( temp 4-component vector of float) 139 0:? 'clip0' ( temp 3-component vector of float) 140 0:? 'clip1' ( temp float) 141 0:? Linker Objects 142 0:? '@entryPointOutput' (layout( location=0) out 4-component vector of float) 143 0:? 'Position' ( in 4-component vector of float FragCoord) 144 0:? 'clip0' ( in 4-element array of float ClipDistance) 145 146 // Module Version 10000 147 // Generated by (magic number): 80007 148 // Id's are bound by 68 149 150 Capability Shader 151 Capability ClipDistance 152 1: ExtInstImport "GLSL.std.450" 153 MemoryModel Logical GLSL450 154 EntryPoint Fragment 4 "main" 32 38 60 155 ExecutionMode 4 OriginUpperLeft 156 Source HLSL 500 157 Name 4 "main" 158 Name 16 "@main(vf4;vf3;f1;" 159 Name 13 "Position" 160 Name 14 "clip0" 161 Name 15 "clip1" 162 Name 30 "Position" 163 Name 32 "Position" 164 Name 34 "clip0" 165 Name 38 "clip0" 166 Name 55 "clip1" 167 Name 60 "@entryPointOutput" 168 Name 61 "param" 169 Name 63 "param" 170 Name 65 "param" 171 Decorate 32(Position) BuiltIn FragCoord 172 Decorate 38(clip0) BuiltIn ClipDistance 173 Decorate 60(@entryPointOutput) Location 0 174 2: TypeVoid 175 3: TypeFunction 2 176 6: TypeFloat 32 177 7: TypeVector 6(float) 4 178 8: TypePointer Function 7(fvec4) 179 9: TypeVector 6(float) 3 180 10: TypePointer Function 9(fvec3) 181 11: TypePointer Function 6(float) 182 12: TypeFunction 7(fvec4) 8(ptr) 10(ptr) 11(ptr) 183 19: TypeInt 32 0 184 20: 19(int) Constant 0 185 31: TypePointer Input 7(fvec4) 186 32(Position): 31(ptr) Variable Input 187 35: 19(int) Constant 4 188 36: TypeArray 6(float) 35 189 37: TypePointer Input 36 190 38(clip0): 37(ptr) Variable Input 191 39: TypeInt 32 1 192 40: 39(int) Constant 0 193 41: TypePointer Input 6(float) 194 45: 39(int) Constant 1 195 48: 19(int) Constant 1 196 50: 39(int) Constant 2 197 53: 19(int) Constant 2 198 56: 39(int) Constant 3 199 59: TypePointer Output 7(fvec4) 200 60(@entryPointOutput): 59(ptr) Variable Output 201 4(main): 2 Function None 3 202 5: Label 203 30(Position): 8(ptr) Variable Function 204 34(clip0): 10(ptr) Variable Function 205 55(clip1): 11(ptr) Variable Function 206 61(param): 8(ptr) Variable Function 207 63(param): 10(ptr) Variable Function 208 65(param): 11(ptr) Variable Function 209 33: 7(fvec4) Load 32(Position) 210 Store 30(Position) 33 211 42: 41(ptr) AccessChain 38(clip0) 40 212 43: 6(float) Load 42 213 44: 11(ptr) AccessChain 34(clip0) 20 214 Store 44 43 215 46: 41(ptr) AccessChain 38(clip0) 45 216 47: 6(float) Load 46 217 49: 11(ptr) AccessChain 34(clip0) 48 218 Store 49 47 219 51: 41(ptr) AccessChain 38(clip0) 50 220 52: 6(float) Load 51 221 54: 11(ptr) AccessChain 34(clip0) 53 222 Store 54 52 223 57: 41(ptr) AccessChain 38(clip0) 56 224 58: 6(float) Load 57 225 Store 55(clip1) 58 226 62: 7(fvec4) Load 30(Position) 227 Store 61(param) 62 228 64: 9(fvec3) Load 34(clip0) 229 Store 63(param) 64 230 66: 6(float) Load 55(clip1) 231 Store 65(param) 66 232 67: 7(fvec4) FunctionCall 16(@main(vf4;vf3;f1;) 61(param) 63(param) 65(param) 233 Store 60(@entryPointOutput) 67 234 Return 235 FunctionEnd 236 16(@main(vf4;vf3;f1;): 7(fvec4) Function None 12 237 13(Position): 8(ptr) FunctionParameter 238 14(clip0): 10(ptr) FunctionParameter 239 15(clip1): 11(ptr) FunctionParameter 240 17: Label 241 18: 7(fvec4) Load 13(Position) 242 21: 11(ptr) AccessChain 14(clip0) 20 243 22: 6(float) Load 21 244 23: 7(fvec4) CompositeConstruct 22 22 22 22 245 24: 7(fvec4) FAdd 18 23 246 25: 6(float) Load 15(clip1) 247 26: 7(fvec4) CompositeConstruct 25 25 25 25 248 27: 7(fvec4) FAdd 24 26 249 ReturnValue 27 250 FunctionEnd 251