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