| spv.textureoffset_non_const.vert |
| // Module Version 10000 |
| // Generated by (magic number): 8000b |
| // Id's are bound by 140 |
| |
| Capability Shader |
| Capability ImageGatherExtended |
| 1: ExtInstImport "GLSL.std.450" |
| MemoryModel Logical GLSL450 |
| EntryPoint Vertex 4 "main" 10 14 18 26 30 47 52 64 80 92 107 122 |
| Source GLSL 450 |
| SourceExtension "GL_EXT_texture_offset_non_const" |
| Name 4 "main" |
| Name 8 "gl_PerVertex" |
| MemberName 8(gl_PerVertex) 0 "gl_Position" |
| Name 10 "" |
| Name 14 "a_position" |
| Name 18 "v_color0" |
| Name 22 "u_sampler" |
| Name 26 "a_in0" |
| Name 30 "offsetValue" |
| Name 34 "buf0" |
| MemberName 34(buf0) 0 "u_scale" |
| Name 36 "" |
| Name 41 "buf1" |
| MemberName 41(buf1) 0 "u_bias" |
| Name 43 "" |
| Name 47 "v_color1" |
| Name 52 "a_in1" |
| Name 64 "v_color2" |
| Name 80 "v_color3" |
| Name 92 "v_color4" |
| Name 107 "v_color5" |
| Name 122 "v_color6" |
| Decorate 8(gl_PerVertex) Block |
| MemberDecorate 8(gl_PerVertex) 0 BuiltIn Position |
| Decorate 14(a_position) Location 0 |
| Decorate 18(v_color0) RelaxedPrecision |
| Decorate 18(v_color0) Location 0 |
| Decorate 22(u_sampler) Binding 0 |
| Decorate 22(u_sampler) DescriptorSet 0 |
| Decorate 26(a_in0) Location 4 |
| Decorate 30(offsetValue) Location 10 |
| Decorate 34(buf0) Block |
| MemberDecorate 34(buf0) 0 Offset 0 |
| Decorate 36 Binding 1 |
| Decorate 36 DescriptorSet 0 |
| Decorate 41(buf1) Block |
| MemberDecorate 41(buf1) 0 Offset 0 |
| Decorate 43 Binding 2 |
| Decorate 43 DescriptorSet 0 |
| Decorate 47(v_color1) RelaxedPrecision |
| Decorate 47(v_color1) Location 1 |
| Decorate 52(a_in1) Location 5 |
| Decorate 64(v_color2) RelaxedPrecision |
| Decorate 64(v_color2) Location 2 |
| Decorate 80(v_color3) RelaxedPrecision |
| Decorate 80(v_color3) Location 3 |
| Decorate 92(v_color4) RelaxedPrecision |
| Decorate 92(v_color4) Location 4 |
| Decorate 107(v_color5) RelaxedPrecision |
| Decorate 107(v_color5) Location 5 |
| Decorate 122(v_color6) RelaxedPrecision |
| Decorate 122(v_color6) Location 6 |
| 2: TypeVoid |
| 3: TypeFunction 2 |
| 6: TypeFloat 32 |
| 7: TypeVector 6(float) 4 |
| 8(gl_PerVertex): TypeStruct 7(fvec4) |
| 9: TypePointer Output 8(gl_PerVertex) |
| 10: 9(ptr) Variable Output |
| 11: TypeInt 32 1 |
| 12: 11(int) Constant 0 |
| 13: TypePointer Input 7(fvec4) |
| 14(a_position): 13(ptr) Variable Input |
| 16: TypePointer Output 7(fvec4) |
| 18(v_color0): 16(ptr) Variable Output |
| 19: TypeImage 6(float) 2D sampled format:Unknown |
| 20: TypeSampledImage 19 |
| 21: TypePointer UniformConstant 20 |
| 22(u_sampler): 21(ptr) Variable UniformConstant |
| 24: TypeVector 6(float) 2 |
| 25: TypePointer Input 24(fvec2) |
| 26(a_in0): 25(ptr) Variable Input |
| 28: TypeVector 11(int) 2 |
| 29: TypePointer Input 28(ivec2) |
| 30(offsetValue): 29(ptr) Variable Input |
| 32: 6(float) Constant 0 |
| 34(buf0): TypeStruct 7(fvec4) |
| 35: TypePointer Uniform 34(buf0) |
| 36: 35(ptr) Variable Uniform |
| 37: TypePointer Uniform 7(fvec4) |
| 41(buf1): TypeStruct 7(fvec4) |
| 42: TypePointer Uniform 41(buf1) |
| 43: 42(ptr) Variable Uniform |
| 47(v_color1): 16(ptr) Variable Output |
| 51: TypePointer Input 6(float) |
| 52(a_in1): 51(ptr) Variable Input |
| 64(v_color2): 16(ptr) Variable Output |
| 67: 6(float) Constant 1065353216 |
| 68: TypeVector 6(float) 3 |
| 80(v_color3): 16(ptr) Variable Output |
| 92(v_color4): 16(ptr) Variable Output |
| 107(v_color5): 16(ptr) Variable Output |
| 122(v_color6): 16(ptr) Variable Output |
| 4(main): 2 Function None 3 |
| 5: Label |
| 15: 7(fvec4) Load 14(a_position) |
| 17: 16(ptr) AccessChain 10 12 |
| Store 17 15 |
| 23: 20 Load 22(u_sampler) |
| 27: 24(fvec2) Load 26(a_in0) |
| 31: 28(ivec2) Load 30(offsetValue) |
| 33: 7(fvec4) ImageSampleExplicitLod 23 27 Lod Offset 32 31 |
| 38: 37(ptr) AccessChain 36 12 |
| 39: 7(fvec4) Load 38 |
| 40: 7(fvec4) FMul 33 39 |
| 44: 37(ptr) AccessChain 43 12 |
| 45: 7(fvec4) Load 44 |
| 46: 7(fvec4) FAdd 40 45 |
| Store 18(v_color0) 46 |
| 48: 20 Load 22(u_sampler) |
| 49: 24(fvec2) Load 26(a_in0) |
| 50: 28(ivec2) ConvertFToS 49 |
| 53: 6(float) Load 52(a_in1) |
| 54: 11(int) ConvertFToS 53 |
| 55: 28(ivec2) Load 30(offsetValue) |
| 56: 19 Image 48 |
| 57: 7(fvec4) ImageFetch 56 50 Lod Offset 54 55 |
| 58: 37(ptr) AccessChain 36 12 |
| 59: 7(fvec4) Load 58 |
| 60: 7(fvec4) FMul 57 59 |
| 61: 37(ptr) AccessChain 43 12 |
| 62: 7(fvec4) Load 61 |
| 63: 7(fvec4) FAdd 60 62 |
| Store 47(v_color1) 63 |
| 65: 20 Load 22(u_sampler) |
| 66: 24(fvec2) Load 26(a_in0) |
| 69: 6(float) CompositeExtract 66 0 |
| 70: 6(float) CompositeExtract 66 1 |
| 71: 68(fvec3) CompositeConstruct 69 70 67 |
| 72: 28(ivec2) Load 30(offsetValue) |
| 73: 7(fvec4) ImageSampleProjExplicitLod 65 71 Lod Offset 32 72 |
| 74: 37(ptr) AccessChain 36 12 |
| 75: 7(fvec4) Load 74 |
| 76: 7(fvec4) FMul 73 75 |
| 77: 37(ptr) AccessChain 43 12 |
| 78: 7(fvec4) Load 77 |
| 79: 7(fvec4) FAdd 76 78 |
| Store 64(v_color2) 79 |
| 81: 20 Load 22(u_sampler) |
| 82: 24(fvec2) Load 26(a_in0) |
| 83: 6(float) Load 52(a_in1) |
| 84: 28(ivec2) Load 30(offsetValue) |
| 85: 7(fvec4) ImageSampleExplicitLod 81 82 Lod Offset 83 84 |
| 86: 37(ptr) AccessChain 36 12 |
| 87: 7(fvec4) Load 86 |
| 88: 7(fvec4) FMul 85 87 |
| 89: 37(ptr) AccessChain 43 12 |
| 90: 7(fvec4) Load 89 |
| 91: 7(fvec4) FAdd 88 90 |
| Store 80(v_color3) 91 |
| 93: 20 Load 22(u_sampler) |
| 94: 24(fvec2) Load 26(a_in0) |
| 95: 6(float) CompositeExtract 94 0 |
| 96: 6(float) CompositeExtract 94 1 |
| 97: 68(fvec3) CompositeConstruct 95 96 67 |
| 98: 6(float) Load 52(a_in1) |
| 99: 28(ivec2) Load 30(offsetValue) |
| 100: 7(fvec4) ImageSampleProjExplicitLod 93 97 Lod Offset 98 99 |
| 101: 37(ptr) AccessChain 36 12 |
| 102: 7(fvec4) Load 101 |
| 103: 7(fvec4) FMul 100 102 |
| 104: 37(ptr) AccessChain 43 12 |
| 105: 7(fvec4) Load 104 |
| 106: 7(fvec4) FAdd 103 105 |
| Store 92(v_color4) 106 |
| 108: 20 Load 22(u_sampler) |
| 109: 24(fvec2) Load 26(a_in0) |
| 110: 6(float) Load 52(a_in1) |
| 111: 24(fvec2) CompositeConstruct 110 110 |
| 112: 6(float) Load 52(a_in1) |
| 113: 24(fvec2) CompositeConstruct 112 112 |
| 114: 28(ivec2) Load 30(offsetValue) |
| 115: 7(fvec4) ImageSampleExplicitLod 108 109 Grad Offset 111 113 114 |
| 116: 37(ptr) AccessChain 36 12 |
| 117: 7(fvec4) Load 116 |
| 118: 7(fvec4) FMul 115 117 |
| 119: 37(ptr) AccessChain 43 12 |
| 120: 7(fvec4) Load 119 |
| 121: 7(fvec4) FAdd 118 120 |
| Store 107(v_color5) 121 |
| 123: 20 Load 22(u_sampler) |
| 124: 24(fvec2) Load 26(a_in0) |
| 125: 6(float) CompositeExtract 124 0 |
| 126: 6(float) CompositeExtract 124 1 |
| 127: 68(fvec3) CompositeConstruct 125 126 67 |
| 128: 6(float) Load 52(a_in1) |
| 129: 24(fvec2) CompositeConstruct 128 128 |
| 130: 6(float) Load 52(a_in1) |
| 131: 24(fvec2) CompositeConstruct 130 130 |
| 132: 28(ivec2) Load 30(offsetValue) |
| 133: 7(fvec4) ImageSampleProjExplicitLod 123 127 Grad Offset 129 131 132 |
| 134: 37(ptr) AccessChain 36 12 |
| 135: 7(fvec4) Load 134 |
| 136: 7(fvec4) FMul 133 135 |
| 137: 37(ptr) AccessChain 43 12 |
| 138: 7(fvec4) Load 137 |
| 139: 7(fvec4) FAdd 136 138 |
| Store 122(v_color6) 139 |
| Return |
| FunctionEnd |