John Kessenich | 6c292d3 | 2016-02-15 20:58:50 -0700 | [diff] [blame] | 1 | spv.subpass.frag |
| 2 | Warning, version 400 is not yet complete; most version-specific features are present, but some are missing. |
| 3 | |
John Kessenich | 6c292d3 | 2016-02-15 20:58:50 -0700 | [diff] [blame] | 4 | // Module Version 10000 |
| 5 | // Generated by (magic number): 80001 |
Jason Ekstrand | ed15ef1 | 2016-06-08 13:54:48 -0700 | [diff] [blame] | 6 | // Id's are bound by 67 |
John Kessenich | 6c292d3 | 2016-02-15 20:58:50 -0700 | [diff] [blame] | 7 | |
| 8 | Capability Shader |
| 9 | Capability InputAttachment |
| 10 | 1: ExtInstImport "GLSL.std.450" |
| 11 | MemoryModel Logical GLSL450 |
Jason Ekstrand | ed15ef1 | 2016-06-08 13:54:48 -0700 | [diff] [blame] | 12 | EntryPoint Fragment 4 "main" 15 27 53 |
John Kessenich | 6c292d3 | 2016-02-15 20:58:50 -0700 | [diff] [blame] | 13 | ExecutionMode 4 OriginUpperLeft |
| 14 | Source GLSL 400 |
| 15 | Name 4 "main" |
| 16 | Name 11 "foo(iIPM1;" |
| 17 | Name 10 "sb" |
| 18 | Name 15 "icolor" |
| 19 | Name 27 "color" |
| 20 | Name 30 "sub" |
| 21 | Name 35 "subMS" |
| 22 | Name 42 "isub" |
Jason Ekstrand | ed15ef1 | 2016-06-08 13:54:48 -0700 | [diff] [blame] | 23 | Name 45 "isubMS" |
| 24 | Name 53 "ucolor" |
| 25 | Name 56 "usub" |
| 26 | Name 61 "usubMS" |
John Kessenich | 6c292d3 | 2016-02-15 20:58:50 -0700 | [diff] [blame] | 27 | Decorate 30(sub) DescriptorSet 0 |
| 28 | Decorate 30(sub) InputAttachmentIndex 1 |
| 29 | Decorate 35(subMS) DescriptorSet 0 |
| 30 | Decorate 35(subMS) InputAttachmentIndex 2 |
| 31 | Decorate 42(isub) DescriptorSet 0 |
| 32 | Decorate 42(isub) InputAttachmentIndex 3 |
Jason Ekstrand | ed15ef1 | 2016-06-08 13:54:48 -0700 | [diff] [blame] | 33 | Decorate 45(isubMS) DescriptorSet 0 |
| 34 | Decorate 45(isubMS) InputAttachmentIndex 4 |
| 35 | Decorate 56(usub) DescriptorSet 0 |
| 36 | Decorate 56(usub) InputAttachmentIndex 5 |
| 37 | Decorate 61(usubMS) DescriptorSet 0 |
| 38 | Decorate 61(usubMS) InputAttachmentIndex 6 |
John Kessenich | 6c292d3 | 2016-02-15 20:58:50 -0700 | [diff] [blame] | 39 | 2: TypeVoid |
| 40 | 3: TypeFunction 2 |
| 41 | 6: TypeInt 32 1 |
| 42 | 7: TypeImage 6(int) SubpassData multi-sampled nonsampled format:Unknown |
Jason Ekstrand | ed15ef1 | 2016-06-08 13:54:48 -0700 | [diff] [blame] | 43 | 8: TypePointer UniformConstant 7 |
John Kessenich | 6c292d3 | 2016-02-15 20:58:50 -0700 | [diff] [blame] | 44 | 9: TypeFunction 2 8(ptr) |
| 45 | 13: TypeVector 6(int) 4 |
| 46 | 14: TypePointer Output 13(ivec4) |
| 47 | 15(icolor): 14(ptr) Variable Output |
| 48 | 17: 6(int) Constant 3 |
| 49 | 18: 6(int) Constant 0 |
| 50 | 19: TypeVector 6(int) 2 |
| 51 | 20: 19(ivec2) ConstantComposite 18 18 |
| 52 | 24: TypeFloat 32 |
| 53 | 25: TypeVector 24(float) 4 |
| 54 | 26: TypePointer Output 25(fvec4) |
| 55 | 27(color): 26(ptr) Variable Output |
| 56 | 28: TypeImage 24(float) SubpassData nonsampled format:Unknown |
| 57 | 29: TypePointer UniformConstant 28 |
| 58 | 30(sub): 29(ptr) Variable UniformConstant |
| 59 | 33: TypeImage 24(float) SubpassData multi-sampled nonsampled format:Unknown |
| 60 | 34: TypePointer UniformConstant 33 |
| 61 | 35(subMS): 34(ptr) Variable UniformConstant |
| 62 | 40: TypeImage 6(int) SubpassData nonsampled format:Unknown |
| 63 | 41: TypePointer UniformConstant 40 |
| 64 | 42(isub): 41(ptr) Variable UniformConstant |
Jason Ekstrand | ed15ef1 | 2016-06-08 13:54:48 -0700 | [diff] [blame] | 65 | 45(isubMS): 8(ptr) Variable UniformConstant |
| 66 | 50: TypeInt 32 0 |
| 67 | 51: TypeVector 50(int) 4 |
| 68 | 52: TypePointer Output 51(ivec4) |
| 69 | 53(ucolor): 52(ptr) Variable Output |
| 70 | 54: TypeImage 50(int) SubpassData nonsampled format:Unknown |
| 71 | 55: TypePointer UniformConstant 54 |
| 72 | 56(usub): 55(ptr) Variable UniformConstant |
| 73 | 59: TypeImage 50(int) SubpassData multi-sampled nonsampled format:Unknown |
| 74 | 60: TypePointer UniformConstant 59 |
| 75 | 61(usubMS): 60(ptr) Variable UniformConstant |
John Kessenich | 6c292d3 | 2016-02-15 20:58:50 -0700 | [diff] [blame] | 76 | 4(main): 2 Function None 3 |
| 77 | 5: Label |
John Kessenich | 6c292d3 | 2016-02-15 20:58:50 -0700 | [diff] [blame] | 78 | 31: 28 Load 30(sub) |
| 79 | 32: 25(fvec4) ImageRead 31 20 |
| 80 | Store 27(color) 32 |
| 81 | 36: 33 Load 35(subMS) |
| 82 | 37: 25(fvec4) ImageRead 36 20 Sample 17 |
| 83 | 38: 25(fvec4) Load 27(color) |
| 84 | 39: 25(fvec4) FAdd 38 37 |
| 85 | Store 27(color) 39 |
| 86 | 43: 40 Load 42(isub) |
| 87 | 44: 13(ivec4) ImageRead 43 20 |
| 88 | Store 15(icolor) 44 |
Jason Ekstrand | ed15ef1 | 2016-06-08 13:54:48 -0700 | [diff] [blame] | 89 | 46: 7 Load 45(isubMS) |
| 90 | 47: 13(ivec4) ImageRead 46 20 Sample 17 |
| 91 | 48: 13(ivec4) Load 15(icolor) |
| 92 | 49: 13(ivec4) IAdd 48 47 |
| 93 | Store 15(icolor) 49 |
| 94 | 57: 54 Load 56(usub) |
| 95 | 58: 51(ivec4) ImageRead 57 20 |
| 96 | Store 53(ucolor) 58 |
| 97 | 62: 59 Load 61(usubMS) |
| 98 | 63: 51(ivec4) ImageRead 62 20 Sample 17 |
| 99 | 64: 51(ivec4) Load 53(ucolor) |
| 100 | 65: 51(ivec4) IAdd 64 63 |
| 101 | Store 53(ucolor) 65 |
| 102 | 66: 2 FunctionCall 11(foo(iIPM1;) 45(isubMS) |
John Kessenich | 6c292d3 | 2016-02-15 20:58:50 -0700 | [diff] [blame] | 103 | Return |
| 104 | FunctionEnd |
| 105 | 11(foo(iIPM1;): 2 Function None 9 |
| 106 | 10(sb): 8(ptr) FunctionParameter |
| 107 | 12: Label |
| 108 | 16: 7 Load 10(sb) |
| 109 | 21: 13(ivec4) ImageRead 16 20 Sample 17 |
| 110 | 22: 13(ivec4) Load 15(icolor) |
| 111 | 23: 13(ivec4) IAdd 22 21 |
| 112 | Store 15(icolor) 23 |
| 113 | Return |
| 114 | FunctionEnd |