John Kessenich | 41aa199 | 2017-10-11 14:03:45 -0600 | [diff] [blame] | 1 | hlsl.partialFlattenMixed.vert |
| 2 | WARNING: AST will form illegal SPIR-V; need to transform to legalize |
| 3 | Shader version: 500 |
| 4 | 0:? Sequence |
| 5 | 0:10 Function Definition: @main(vf4; ( temp 4-component vector of float) |
| 6 | 0:10 Function Parameters: |
| 7 | 0:10 'pos' ( in 4-component vector of float) |
| 8 | 0:? Sequence |
| 9 | 0:13 Sequence |
| 10 | 0:13 move second child to first child ( temp texture2D) |
| 11 | 0:13 direct index ( temp texture2D) |
John Kessenich | dc005fb | 2017-11-16 16:03:18 -0700 | [diff] [blame] | 12 | 0:13 membTex: direct index for structure ( temp 2-element array of texture2D) |
| 13 | 0:13 'packed' ( temp structure{ temp int a, temp 2-element array of texture2D membTex, temp int b}) |
| 14 | 0:13 Constant: |
| 15 | 0:13 1 (const int) |
John Kessenich | 41aa199 | 2017-10-11 14:03:45 -0600 | [diff] [blame] | 16 | 0:13 Constant: |
| 17 | 0:13 0 (const int) |
| 18 | 0:? 'tex[0]' ( uniform texture2D) |
| 19 | 0:13 move second child to first child ( temp texture2D) |
| 20 | 0:13 direct index ( temp texture2D) |
John Kessenich | dc005fb | 2017-11-16 16:03:18 -0700 | [diff] [blame] | 21 | 0:13 membTex: direct index for structure ( temp 2-element array of texture2D) |
| 22 | 0:13 'packed' ( temp structure{ temp int a, temp 2-element array of texture2D membTex, temp int b}) |
| 23 | 0:13 Constant: |
| 24 | 0:13 1 (const int) |
John Kessenich | 41aa199 | 2017-10-11 14:03:45 -0600 | [diff] [blame] | 25 | 0:13 Constant: |
| 26 | 0:13 1 (const int) |
| 27 | 0:? 'tex[1]' ( uniform texture2D) |
| 28 | 0:15 Branch: Return with expression |
| 29 | 0:15 'pos' ( in 4-component vector of float) |
| 30 | 0:10 Function Definition: main( ( temp void) |
| 31 | 0:10 Function Parameters: |
| 32 | 0:? Sequence |
| 33 | 0:10 move second child to first child ( temp 4-component vector of float) |
| 34 | 0:? 'pos' ( temp 4-component vector of float) |
| 35 | 0:? 'pos' (layout( location=0) in 4-component vector of float) |
| 36 | 0:10 move second child to first child ( temp 4-component vector of float) |
| 37 | 0:? '@entryPointOutput' ( out 4-component vector of float Position) |
| 38 | 0:10 Function Call: @main(vf4; ( temp 4-component vector of float) |
| 39 | 0:? 'pos' ( temp 4-component vector of float) |
| 40 | 0:? Linker Objects |
| 41 | 0:? 'tex[0]' ( uniform texture2D) |
| 42 | 0:? 'tex[1]' ( uniform texture2D) |
| 43 | 0:? '@entryPointOutput' ( out 4-component vector of float Position) |
| 44 | 0:? 'pos' (layout( location=0) in 4-component vector of float) |
| 45 | |
| 46 | |
| 47 | Linked vertex stage: |
| 48 | |
| 49 | |
| 50 | Shader version: 500 |
| 51 | 0:? Sequence |
| 52 | 0:10 Function Definition: @main(vf4; ( temp 4-component vector of float) |
| 53 | 0:10 Function Parameters: |
| 54 | 0:10 'pos' ( in 4-component vector of float) |
| 55 | 0:? Sequence |
| 56 | 0:13 Sequence |
| 57 | 0:13 move second child to first child ( temp texture2D) |
| 58 | 0:13 direct index ( temp texture2D) |
John Kessenich | dc005fb | 2017-11-16 16:03:18 -0700 | [diff] [blame] | 59 | 0:13 membTex: direct index for structure ( temp 2-element array of texture2D) |
| 60 | 0:13 'packed' ( temp structure{ temp int a, temp 2-element array of texture2D membTex, temp int b}) |
| 61 | 0:13 Constant: |
| 62 | 0:13 1 (const int) |
John Kessenich | 41aa199 | 2017-10-11 14:03:45 -0600 | [diff] [blame] | 63 | 0:13 Constant: |
| 64 | 0:13 0 (const int) |
| 65 | 0:? 'tex[0]' ( uniform texture2D) |
| 66 | 0:13 move second child to first child ( temp texture2D) |
| 67 | 0:13 direct index ( temp texture2D) |
John Kessenich | dc005fb | 2017-11-16 16:03:18 -0700 | [diff] [blame] | 68 | 0:13 membTex: direct index for structure ( temp 2-element array of texture2D) |
| 69 | 0:13 'packed' ( temp structure{ temp int a, temp 2-element array of texture2D membTex, temp int b}) |
| 70 | 0:13 Constant: |
| 71 | 0:13 1 (const int) |
John Kessenich | 41aa199 | 2017-10-11 14:03:45 -0600 | [diff] [blame] | 72 | 0:13 Constant: |
| 73 | 0:13 1 (const int) |
| 74 | 0:? 'tex[1]' ( uniform texture2D) |
| 75 | 0:15 Branch: Return with expression |
| 76 | 0:15 'pos' ( in 4-component vector of float) |
| 77 | 0:10 Function Definition: main( ( temp void) |
| 78 | 0:10 Function Parameters: |
| 79 | 0:? Sequence |
| 80 | 0:10 move second child to first child ( temp 4-component vector of float) |
| 81 | 0:? 'pos' ( temp 4-component vector of float) |
| 82 | 0:? 'pos' (layout( location=0) in 4-component vector of float) |
| 83 | 0:10 move second child to first child ( temp 4-component vector of float) |
| 84 | 0:? '@entryPointOutput' ( out 4-component vector of float Position) |
| 85 | 0:10 Function Call: @main(vf4; ( temp 4-component vector of float) |
| 86 | 0:? 'pos' ( temp 4-component vector of float) |
| 87 | 0:? Linker Objects |
| 88 | 0:? 'tex[0]' ( uniform texture2D) |
| 89 | 0:? 'tex[1]' ( uniform texture2D) |
| 90 | 0:? '@entryPointOutput' ( out 4-component vector of float Position) |
| 91 | 0:? 'pos' (layout( location=0) in 4-component vector of float) |
| 92 | |
John Kessenich | 2b5ea9f | 2018-01-31 18:35:56 -0700 | [diff] [blame] | 93 | // Module Version 10000 |
Graeme Leese | 182ab46 | 2020-06-22 11:49:38 +0100 | [diff] [blame] | 94 | // Generated by (magic number): 8000a |
John Kessenich | dc005fb | 2017-11-16 16:03:18 -0700 | [diff] [blame] | 95 | // Id's are bound by 43 |
John Kessenich | 41aa199 | 2017-10-11 14:03:45 -0600 | [diff] [blame] | 96 | |
| 97 | Capability Shader |
| 98 | 1: ExtInstImport "GLSL.std.450" |
| 99 | MemoryModel Logical GLSL450 |
John Kessenich | dc005fb | 2017-11-16 16:03:18 -0700 | [diff] [blame] | 100 | EntryPoint Vertex 4 "main" 36 39 |
John Kessenich | 41aa199 | 2017-10-11 14:03:45 -0600 | [diff] [blame] | 101 | Source HLSL 500 |
| 102 | Name 4 "main" |
| 103 | Name 11 "@main(vf4;" |
| 104 | Name 10 "pos" |
John Kessenich | dc005fb | 2017-11-16 16:03:18 -0700 | [diff] [blame] | 105 | Name 18 "Packed" |
| 106 | MemberName 18(Packed) 0 "a" |
| 107 | MemberName 18(Packed) 1 "membTex" |
| 108 | MemberName 18(Packed) 2 "b" |
| 109 | Name 20 "packed" |
| 110 | Name 24 "tex[0]" |
| 111 | Name 28 "tex[1]" |
| 112 | Name 34 "pos" |
| 113 | Name 36 "pos" |
| 114 | Name 39 "@entryPointOutput" |
| 115 | Name 40 "param" |
| 116 | Decorate 24(tex[0]) DescriptorSet 0 |
Jeff Bolz | 0a93cfb | 2018-12-11 20:53:59 -0600 | [diff] [blame] | 117 | Decorate 24(tex[0]) Binding 0 |
John Kessenich | dc005fb | 2017-11-16 16:03:18 -0700 | [diff] [blame] | 118 | Decorate 28(tex[1]) DescriptorSet 0 |
John Kessenich | f6facfa | 2020-07-01 06:30:16 -0600 | [diff] [blame] | 119 | Decorate 28(tex[1]) Binding 1 |
John Kessenich | dc005fb | 2017-11-16 16:03:18 -0700 | [diff] [blame] | 120 | Decorate 36(pos) Location 0 |
| 121 | Decorate 39(@entryPointOutput) BuiltIn Position |
John Kessenich | 41aa199 | 2017-10-11 14:03:45 -0600 | [diff] [blame] | 122 | 2: TypeVoid |
| 123 | 3: TypeFunction 2 |
| 124 | 6: TypeFloat 32 |
| 125 | 7: TypeVector 6(float) 4 |
| 126 | 8: TypePointer Function 7(fvec4) |
| 127 | 9: TypeFunction 7(fvec4) 8(ptr) |
John Kessenich | dc005fb | 2017-11-16 16:03:18 -0700 | [diff] [blame] | 128 | 13: TypeInt 32 1 |
| 129 | 14: TypeImage 6(float) 2D sampled format:Unknown |
| 130 | 15: TypeInt 32 0 |
| 131 | 16: 15(int) Constant 2 |
| 132 | 17: TypeArray 14 16 |
| 133 | 18(Packed): TypeStruct 13(int) 17 13(int) |
| 134 | 19: TypePointer Function 18(Packed) |
| 135 | 21: 13(int) Constant 1 |
| 136 | 22: 13(int) Constant 0 |
| 137 | 23: TypePointer UniformConstant 14 |
| 138 | 24(tex[0]): 23(ptr) Variable UniformConstant |
| 139 | 26: TypePointer Function 14 |
| 140 | 28(tex[1]): 23(ptr) Variable UniformConstant |
| 141 | 35: TypePointer Input 7(fvec4) |
| 142 | 36(pos): 35(ptr) Variable Input |
| 143 | 38: TypePointer Output 7(fvec4) |
| 144 | 39(@entryPointOutput): 38(ptr) Variable Output |
John Kessenich | 41aa199 | 2017-10-11 14:03:45 -0600 | [diff] [blame] | 145 | 4(main): 2 Function None 3 |
| 146 | 5: Label |
John Kessenich | dc005fb | 2017-11-16 16:03:18 -0700 | [diff] [blame] | 147 | 34(pos): 8(ptr) Variable Function |
| 148 | 40(param): 8(ptr) Variable Function |
| 149 | 37: 7(fvec4) Load 36(pos) |
| 150 | Store 34(pos) 37 |
| 151 | 41: 7(fvec4) Load 34(pos) |
| 152 | Store 40(param) 41 |
| 153 | 42: 7(fvec4) FunctionCall 11(@main(vf4;) 40(param) |
| 154 | Store 39(@entryPointOutput) 42 |
John Kessenich | 41aa199 | 2017-10-11 14:03:45 -0600 | [diff] [blame] | 155 | Return |
| 156 | FunctionEnd |
| 157 | 11(@main(vf4;): 7(fvec4) Function None 9 |
| 158 | 10(pos): 8(ptr) FunctionParameter |
| 159 | 12: Label |
John Kessenich | dc005fb | 2017-11-16 16:03:18 -0700 | [diff] [blame] | 160 | 20(packed): 19(ptr) Variable Function |
| 161 | 25: 14 Load 24(tex[0]) |
| 162 | 27: 26(ptr) AccessChain 20(packed) 21 22 |
| 163 | Store 27 25 |
| 164 | 29: 14 Load 28(tex[1]) |
| 165 | 30: 26(ptr) AccessChain 20(packed) 21 21 |
| 166 | Store 30 29 |
| 167 | 31: 7(fvec4) Load 10(pos) |
| 168 | ReturnValue 31 |
John Kessenich | 41aa199 | 2017-10-11 14:03:45 -0600 | [diff] [blame] | 169 | FunctionEnd |