steve-lunarg | 932bb5c | 2017-02-21 17:19:08 -0700 | [diff] [blame] | 1 | spv.ssbo.autoassign.frag |
| 2 | // Module Version 10000 |
| 3 | // Generated by (magic number): 80001 |
| 4 | // Id's are bound by 95 |
| 5 | |
| 6 | Capability Shader |
| 7 | 1: ExtInstImport "GLSL.std.450" |
| 8 | MemoryModel Logical GLSL450 |
| 9 | EntryPoint Fragment 4 "main" 88 91 |
| 10 | ExecutionMode 4 OriginUpperLeft |
| 11 | Name 4 "main" |
| 12 | Name 11 "@main(vf4;" |
| 13 | Name 10 "pos" |
| 14 | Name 13 "vTmp" |
| 15 | Name 14 "BufType" |
| 16 | MemberName 14(BufType) 0 "va" |
| 17 | MemberName 14(BufType) 1 "vb" |
| 18 | Name 16 "SB0" |
steve-lunarg | dd8287a | 2017-02-23 18:04:12 -0700 | [diff] [blame^] | 19 | MemberName 16(SB0) 0 "@data" |
| 20 | Name 18 "SB0" |
steve-lunarg | 932bb5c | 2017-02-21 17:19:08 -0700 | [diff] [blame] | 21 | Name 26 "TestCB" |
| 22 | MemberName 26(TestCB) 0 "W" |
| 23 | MemberName 26(TestCB) 1 "H" |
| 24 | Name 28 "" |
| 25 | Name 55 "SB1" |
steve-lunarg | dd8287a | 2017-02-23 18:04:12 -0700 | [diff] [blame^] | 26 | MemberName 55(SB1) 0 "@data" |
| 27 | Name 57 "SB1" |
steve-lunarg | 932bb5c | 2017-02-21 17:19:08 -0700 | [diff] [blame] | 28 | Name 86 "pos" |
| 29 | Name 88 "pos" |
| 30 | Name 91 "@entryPointOutput" |
| 31 | Name 92 "param" |
| 32 | MemberDecorate 14(BufType) 0 NonWritable |
| 33 | MemberDecorate 14(BufType) 0 Offset 0 |
| 34 | MemberDecorate 14(BufType) 1 NonWritable |
| 35 | MemberDecorate 14(BufType) 1 Offset 16 |
| 36 | Decorate 15 ArrayStride 32 |
| 37 | MemberDecorate 16(SB0) 0 NonWritable |
| 38 | MemberDecorate 16(SB0) 0 Offset 0 |
| 39 | Decorate 16(SB0) BufferBlock |
steve-lunarg | dd8287a | 2017-02-23 18:04:12 -0700 | [diff] [blame^] | 40 | Decorate 18(SB0) DescriptorSet 0 |
| 41 | Decorate 18(SB0) Binding 30 |
steve-lunarg | 932bb5c | 2017-02-21 17:19:08 -0700 | [diff] [blame] | 42 | MemberDecorate 26(TestCB) 0 Offset 0 |
| 43 | MemberDecorate 26(TestCB) 1 Offset 4 |
| 44 | Decorate 26(TestCB) Block |
| 45 | Decorate 28 DescriptorSet 0 |
| 46 | Decorate 28 Binding 15 |
| 47 | Decorate 54 ArrayStride 32 |
| 48 | MemberDecorate 55(SB1) 0 Offset 0 |
| 49 | Decorate 55(SB1) BufferBlock |
steve-lunarg | dd8287a | 2017-02-23 18:04:12 -0700 | [diff] [blame^] | 50 | Decorate 57(SB1) DescriptorSet 0 |
| 51 | Decorate 57(SB1) Binding 31 |
steve-lunarg | 932bb5c | 2017-02-21 17:19:08 -0700 | [diff] [blame] | 52 | Decorate 88(pos) Location 0 |
| 53 | Decorate 91(@entryPointOutput) Location 0 |
| 54 | 2: TypeVoid |
| 55 | 3: TypeFunction 2 |
| 56 | 6: TypeFloat 32 |
| 57 | 7: TypeVector 6(float) 4 |
| 58 | 8: TypePointer Function 7(fvec4) |
| 59 | 9: TypeFunction 7(fvec4) 8(ptr) |
| 60 | 14(BufType): TypeStruct 7(fvec4) 7(fvec4) |
| 61 | 15: TypeRuntimeArray 14(BufType) |
| 62 | 16(SB0): TypeStruct 15 |
| 63 | 17: TypePointer Uniform 16(SB0) |
steve-lunarg | dd8287a | 2017-02-23 18:04:12 -0700 | [diff] [blame^] | 64 | 18(SB0): 17(ptr) Variable Uniform |
steve-lunarg | 932bb5c | 2017-02-21 17:19:08 -0700 | [diff] [blame] | 65 | 19: TypeInt 32 1 |
| 66 | 20: 19(int) Constant 0 |
| 67 | 21: TypeInt 32 0 |
| 68 | 22: 21(int) Constant 1 |
| 69 | 23: TypePointer Function 6(float) |
| 70 | 26(TestCB): TypeStruct 21(int) 21(int) |
| 71 | 27: TypePointer Uniform 26(TestCB) |
| 72 | 28: 27(ptr) Variable Uniform |
| 73 | 29: TypePointer Uniform 21(int) |
| 74 | 34: 21(int) Constant 0 |
| 75 | 38: TypePointer Uniform 7(fvec4) |
| 76 | 50: 19(int) Constant 1 |
| 77 | 54: TypeRuntimeArray 14(BufType) |
| 78 | 55(SB1): TypeStruct 54 |
| 79 | 56: TypePointer Uniform 55(SB1) |
steve-lunarg | dd8287a | 2017-02-23 18:04:12 -0700 | [diff] [blame^] | 80 | 57(SB1): 56(ptr) Variable Uniform |
steve-lunarg | 932bb5c | 2017-02-21 17:19:08 -0700 | [diff] [blame] | 81 | 87: TypePointer Input 7(fvec4) |
| 82 | 88(pos): 87(ptr) Variable Input |
| 83 | 90: TypePointer Output 7(fvec4) |
| 84 | 91(@entryPointOutput): 90(ptr) Variable Output |
| 85 | 4(main): 2 Function None 3 |
| 86 | 5: Label |
| 87 | 86(pos): 8(ptr) Variable Function |
| 88 | 92(param): 8(ptr) Variable Function |
| 89 | 89: 7(fvec4) Load 88(pos) |
| 90 | Store 86(pos) 89 |
| 91 | 93: 7(fvec4) Load 86(pos) |
| 92 | Store 92(param) 93 |
| 93 | 94: 7(fvec4) FunctionCall 11(@main(vf4;) 92(param) |
| 94 | Store 91(@entryPointOutput) 94 |
| 95 | Return |
| 96 | FunctionEnd |
| 97 | 11(@main(vf4;): 7(fvec4) Function None 9 |
| 98 | 10(pos): 8(ptr) FunctionParameter |
| 99 | 12: Label |
| 100 | 13(vTmp): 8(ptr) Variable Function |
| 101 | 24: 23(ptr) AccessChain 10(pos) 22 |
| 102 | 25: 6(float) Load 24 |
| 103 | 30: 29(ptr) AccessChain 28 20 |
| 104 | 31: 21(int) Load 30 |
| 105 | 32: 6(float) ConvertUToF 31 |
| 106 | 33: 6(float) FMul 25 32 |
| 107 | 35: 23(ptr) AccessChain 10(pos) 34 |
| 108 | 36: 6(float) Load 35 |
| 109 | 37: 6(float) FAdd 33 36 |
steve-lunarg | dd8287a | 2017-02-23 18:04:12 -0700 | [diff] [blame^] | 110 | 39: 38(ptr) AccessChain 18(SB0) 20 37 20 |
steve-lunarg | 932bb5c | 2017-02-21 17:19:08 -0700 | [diff] [blame] | 111 | 40: 7(fvec4) Load 39 |
| 112 | 41: 23(ptr) AccessChain 10(pos) 22 |
| 113 | 42: 6(float) Load 41 |
| 114 | 43: 29(ptr) AccessChain 28 20 |
| 115 | 44: 21(int) Load 43 |
| 116 | 45: 6(float) ConvertUToF 44 |
| 117 | 46: 6(float) FMul 42 45 |
| 118 | 47: 23(ptr) AccessChain 10(pos) 34 |
| 119 | 48: 6(float) Load 47 |
| 120 | 49: 6(float) FAdd 46 48 |
steve-lunarg | dd8287a | 2017-02-23 18:04:12 -0700 | [diff] [blame^] | 121 | 51: 38(ptr) AccessChain 18(SB0) 20 49 50 |
steve-lunarg | 932bb5c | 2017-02-21 17:19:08 -0700 | [diff] [blame] | 122 | 52: 7(fvec4) Load 51 |
| 123 | 53: 7(fvec4) FAdd 40 52 |
| 124 | Store 13(vTmp) 53 |
| 125 | 58: 23(ptr) AccessChain 10(pos) 22 |
| 126 | 59: 6(float) Load 58 |
| 127 | 60: 29(ptr) AccessChain 28 20 |
| 128 | 61: 21(int) Load 60 |
| 129 | 62: 6(float) ConvertUToF 61 |
| 130 | 63: 6(float) FMul 59 62 |
| 131 | 64: 23(ptr) AccessChain 10(pos) 34 |
| 132 | 65: 6(float) Load 64 |
| 133 | 66: 6(float) FAdd 63 65 |
steve-lunarg | dd8287a | 2017-02-23 18:04:12 -0700 | [diff] [blame^] | 134 | 67: 38(ptr) AccessChain 57(SB1) 20 66 20 |
steve-lunarg | 932bb5c | 2017-02-21 17:19:08 -0700 | [diff] [blame] | 135 | 68: 7(fvec4) Load 67 |
| 136 | 69: 23(ptr) AccessChain 10(pos) 22 |
| 137 | 70: 6(float) Load 69 |
| 138 | 71: 29(ptr) AccessChain 28 20 |
| 139 | 72: 21(int) Load 71 |
| 140 | 73: 6(float) ConvertUToF 72 |
| 141 | 74: 6(float) FMul 70 73 |
| 142 | 75: 23(ptr) AccessChain 10(pos) 34 |
| 143 | 76: 6(float) Load 75 |
| 144 | 77: 6(float) FAdd 74 76 |
steve-lunarg | dd8287a | 2017-02-23 18:04:12 -0700 | [diff] [blame^] | 145 | 78: 38(ptr) AccessChain 57(SB1) 20 77 50 |
steve-lunarg | 932bb5c | 2017-02-21 17:19:08 -0700 | [diff] [blame] | 146 | 79: 7(fvec4) Load 78 |
| 147 | 80: 7(fvec4) FAdd 68 79 |
| 148 | 81: 7(fvec4) Load 13(vTmp) |
| 149 | 82: 7(fvec4) FAdd 81 80 |
| 150 | Store 13(vTmp) 82 |
| 151 | 83: 7(fvec4) Load 13(vTmp) |
| 152 | ReturnValue 83 |
| 153 | FunctionEnd |