amhagan | 05506bb | 2017-06-13 16:53:02 -0400 | [diff] [blame^] | 1 | spv.shaderFragMaskAMD.frag |
| 2 | // Module Version 10000 |
| 3 | // Generated by (magic number): 80001 |
| 4 | // Id's are bound by 80 |
| 5 | |
| 6 | Capability Shader |
| 7 | Capability StorageImageMultisample |
| 8 | Capability InputAttachment |
| 9 | Capability FragmentMaskAMD |
| 10 | Extension "SPV_AMD_shader_fragment_mask" |
| 11 | 1: ExtInstImport "GLSL.std.450" |
| 12 | MemoryModel Logical GLSL450 |
| 13 | EntryPoint Fragment 4 "main" 78 |
| 14 | ExecutionMode 4 OriginUpperLeft |
| 15 | Source GLSL 450 |
| 16 | SourceExtension "GL_AMD_shader_fragment_mask" |
| 17 | Name 4 "main" |
| 18 | Name 9 "f4" |
| 19 | Name 14 "fragMask" |
| 20 | Name 18 "s2DMS" |
| 21 | Name 27 "fragIndex" |
| 22 | Name 42 "is2DMSArray" |
| 23 | Name 62 "usubpassMS" |
| 24 | Name 78 "fragColor" |
| 25 | Decorate 18(s2DMS) DescriptorSet 0 |
| 26 | Decorate 18(s2DMS) Binding 0 |
| 27 | Decorate 42(is2DMSArray) DescriptorSet 0 |
| 28 | Decorate 42(is2DMSArray) Binding 1 |
| 29 | Decorate 62(usubpassMS) DescriptorSet 0 |
| 30 | Decorate 62(usubpassMS) Binding 2 |
| 31 | Decorate 62(usubpassMS) InputAttachmentIndex 0 |
| 32 | Decorate 78(fragColor) Location 0 |
| 33 | 2: TypeVoid |
| 34 | 3: TypeFunction 2 |
| 35 | 6: TypeFloat 32 |
| 36 | 7: TypeVector 6(float) 4 |
| 37 | 8: TypePointer Function 7(fvec4) |
| 38 | 10: 6(float) Constant 0 |
| 39 | 11: 7(fvec4) ConstantComposite 10 10 10 10 |
| 40 | 12: TypeInt 32 0 |
| 41 | 13: TypePointer Function 12(int) |
| 42 | 15: TypeImage 6(float) 2D multi-sampled sampled format:Unknown |
| 43 | 16: TypeSampledImage 15 |
| 44 | 17: TypePointer UniformConstant 16 |
| 45 | 18(s2DMS): 17(ptr) Variable UniformConstant |
| 46 | 20: TypeInt 32 1 |
| 47 | 21: TypeVector 20(int) 2 |
| 48 | 22: 20(int) Constant 2 |
| 49 | 23: 20(int) Constant 3 |
| 50 | 24: 21(ivec2) ConstantComposite 22 23 |
| 51 | 29: 12(int) Constant 240 |
| 52 | 31: 20(int) Constant 4 |
| 53 | 34: 12(int) Constant 1 |
| 54 | 39: TypeImage 20(int) 2D array multi-sampled sampled format:Unknown |
| 55 | 40: TypeSampledImage 39 |
| 56 | 41: TypePointer UniformConstant 40 |
| 57 | 42(is2DMSArray): 41(ptr) Variable UniformConstant |
| 58 | 44: TypeVector 20(int) 3 |
| 59 | 45: 20(int) Constant 1 |
| 60 | 46: 44(ivec3) ConstantComposite 22 23 45 |
| 61 | 55: TypeVector 20(int) 4 |
| 62 | 60: TypeImage 12(int) SubpassData multi-sampled nonsampled format:Unknown |
| 63 | 61: TypePointer UniformConstant 60 |
| 64 | 62(usubpassMS): 61(ptr) Variable UniformConstant |
| 65 | 64: 20(int) Constant 0 |
| 66 | 65: 21(ivec2) ConstantComposite 64 64 |
| 67 | 72: TypeVector 12(int) 4 |
| 68 | 77: TypePointer Output 7(fvec4) |
| 69 | 78(fragColor): 77(ptr) Variable Output |
| 70 | 4(main): 2 Function None 3 |
| 71 | 5: Label |
| 72 | 9(f4): 8(ptr) Variable Function |
| 73 | 14(fragMask): 13(ptr) Variable Function |
| 74 | 27(fragIndex): 13(ptr) Variable Function |
| 75 | Store 9(f4) 11 |
| 76 | 19: 16 Load 18(s2DMS) |
| 77 | 25: 15 Image 19 |
| 78 | 26: 12(int) FragmentMaskFetchAMD 25 24 |
| 79 | Store 14(fragMask) 26 |
| 80 | 28: 12(int) Load 14(fragMask) |
| 81 | 30: 12(int) BitwiseAnd 28 29 |
| 82 | 32: 12(int) ShiftRightLogical 30 31 |
| 83 | Store 27(fragIndex) 32 |
| 84 | 33: 16 Load 18(s2DMS) |
| 85 | 35: 15 Image 33 |
| 86 | 36: 7(fvec4) FragmentFetchAMD 35 24 34 |
| 87 | 37: 7(fvec4) Load 9(f4) |
| 88 | 38: 7(fvec4) FAdd 37 36 |
| 89 | Store 9(f4) 38 |
| 90 | 43: 40 Load 42(is2DMSArray) |
| 91 | 47: 39 Image 43 |
| 92 | 48: 12(int) FragmentMaskFetchAMD 47 46 |
| 93 | Store 14(fragMask) 48 |
| 94 | 49: 12(int) Load 14(fragMask) |
| 95 | 50: 12(int) BitwiseAnd 49 29 |
| 96 | 51: 12(int) ShiftRightLogical 50 31 |
| 97 | Store 27(fragIndex) 51 |
| 98 | 52: 40 Load 42(is2DMSArray) |
| 99 | 53: 12(int) Load 27(fragIndex) |
| 100 | 54: 39 Image 52 |
| 101 | 56: 55(ivec4) FragmentFetchAMD 54 46 53 |
| 102 | 57: 7(fvec4) ConvertSToF 56 |
| 103 | 58: 7(fvec4) Load 9(f4) |
| 104 | 59: 7(fvec4) FAdd 58 57 |
| 105 | Store 9(f4) 59 |
| 106 | 63: 60 Load 62(usubpassMS) |
| 107 | 66: 12(int) FragmentMaskFetchAMD 63 65 |
| 108 | Store 14(fragMask) 66 |
| 109 | 67: 12(int) Load 14(fragMask) |
| 110 | 68: 12(int) BitwiseAnd 67 29 |
| 111 | 69: 12(int) ShiftRightLogical 68 31 |
| 112 | Store 27(fragIndex) 69 |
| 113 | 70: 60 Load 62(usubpassMS) |
| 114 | 71: 12(int) Load 27(fragIndex) |
| 115 | 73: 72(ivec4) FragmentFetchAMD 70 65 71 |
| 116 | 74: 7(fvec4) ConvertUToF 73 |
| 117 | 75: 7(fvec4) Load 9(f4) |
| 118 | 76: 7(fvec4) FAdd 75 74 |
| 119 | Store 9(f4) 76 |
| 120 | 79: 7(fvec4) Load 9(f4) |
| 121 | Store 78(fragColor) 79 |
| 122 | Return |
| 123 | FunctionEnd |