yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
0a8b2975
main
1spv.pp.line.frag 2WARNING: spv.pp.line.frag:7: varying deprecated in version 130; may be removed in future release 3WARNING: spv.pp.line.frag:8: varying deprecated in version 130; may be removed in future release 4 5// Module Version 10000 6// Generated by (magic number): 8000b 7// Id's are bound by 84 8 9 Capability Shader 10 Capability Sampled1D 11 2: ExtInstImport "GLSL.std.450" 12 MemoryModel Logical GLSL450 13 EntryPoint Fragment 5 "main" 23 26 29 76 14 ExecutionMode 5 OriginUpperLeft 15 1: String "spv.pp.line.frag" 16 7: String "header.h" 17 Source GLSL 140 1 "// OpModuleProcessed auto-map-locations 18// OpModuleProcessed auto-map-bindings 19// OpModuleProcessed client vulkan100 20// OpModuleProcessed target-env vulkan1.0 21// OpModuleProcessed keep-uncalled 22// OpModuleProcessed entry-point main 23#line 1 24#version 140 25#extension GL_GOOGLE_cpp_style_line_directive : require 26 27uniform sampler1D texSampler1D; 28uniform sampler2D texSampler2D; 29 30varying float blend; 31varying vec4 u; 32 33in vec2 coords2D; 34 35#line 0 "header.h" 36float myAbs(float x) { 37 if (x > 0) { 38 return x; 39 } 40 else { 41 return -x; 42 } 43} 44 45#line 22 "spv.pp.line.frag" 46void main() 47{ 48 float blendscale = myAbs(1.789); 49 float bias = 2.0; 50 float coords1D = 1.789; 51 vec4 color = vec4(0.0, 0.0, 0.0, 0.0); 52#line 53 53 color += texture (texSampler1D, coords1D); 54 color += texture (texSampler1D, coords1D, bias); 55#line 102 56 color += texture (texSampler2D, coords2D); 57 color += texture (texSampler2D, coords2D, bias); 58 59 gl_FragColor = mix(color, u, blend * blendscale); 60} 61" 62 SourceExtension "GL_GOOGLE_cpp_style_line_directive" 63 Name 5 "main" 64 Name 12 "myAbs(f1;" 65 Name 11 "x" 66 Name 17 "texSampler1D" 67 Name 21 "texSampler2D" 68 Name 23 "blend" 69 Name 26 "u" 70 Name 29 "coords2D" 71 Name 43 "blendscale" 72 Name 45 "param" 73 Name 47 "bias" 74 Name 49 "coords1D" 75 Name 51 "color" 76 Name 76 "gl_FragColor" 77 Decorate 17(texSampler1D) Binding 0 78 Decorate 17(texSampler1D) DescriptorSet 0 79 Decorate 21(texSampler2D) Binding 1 80 Decorate 21(texSampler2D) DescriptorSet 0 81 Decorate 23(blend) Location 0 82 Decorate 26(u) Location 1 83 Decorate 29(coords2D) Location 2 84 Decorate 76(gl_FragColor) Location 0 85 3: TypeVoid 86 4: TypeFunction 3 87 8: TypeFloat 32 88 9: TypePointer Function 8(float) 89 10: TypeFunction 8(float) 9(ptr) 90 14: TypeImage 8(float) 1D sampled format:Unknown 91 15: TypeSampledImage 14 92 16: TypePointer UniformConstant 15 9317(texSampler1D): 16(ptr) Variable UniformConstant 94 18: TypeImage 8(float) 2D sampled format:Unknown 95 19: TypeSampledImage 18 96 20: TypePointer UniformConstant 19 9721(texSampler2D): 20(ptr) Variable UniformConstant 98 22: TypePointer Input 8(float) 99 23(blend): 22(ptr) Variable Input 100 24: TypeVector 8(float) 4 101 25: TypePointer Input 24(fvec4) 102 26(u): 25(ptr) Variable Input 103 27: TypeVector 8(float) 2 104 28: TypePointer Input 27(fvec2) 105 29(coords2D): 28(ptr) Variable Input 106 31: 8(float) Constant 0 107 32: TypeBool 108 44: 8(float) Constant 1071971828 109 48: 8(float) Constant 1073741824 110 50: TypePointer Function 24(fvec4) 111 52: 24(fvec4) ConstantComposite 31 31 31 31 112 75: TypePointer Output 24(fvec4) 11376(gl_FragColor): 75(ptr) Variable Output 114 Line 1 23 11 115 5(main): 3 Function None 4 116 6: Label 117 43(blendscale): 9(ptr) Variable Function 118 45(param): 9(ptr) Variable Function 119 47(bias): 9(ptr) Variable Function 120 49(coords1D): 9(ptr) Variable Function 121 51(color): 50(ptr) Variable Function 122 Line 1 25 0 123 Store 45(param) 44 124 46: 8(float) FunctionCall 12(myAbs(f1;) 45(param) 125 Store 43(blendscale) 46 126 Line 1 26 0 127 Store 47(bias) 48 128 Line 1 27 0 129 Store 49(coords1D) 44 130 Line 1 28 0 131 Store 51(color) 52 132 Line 1 54 0 133 53: 15 Load 17(texSampler1D) 134 54: 8(float) Load 49(coords1D) 135 55: 24(fvec4) ImageSampleImplicitLod 53 54 136 56: 24(fvec4) Load 51(color) 137 57: 24(fvec4) FAdd 56 55 138 Store 51(color) 57 139 Line 1 55 0 140 58: 15 Load 17(texSampler1D) 141 59: 8(float) Load 49(coords1D) 142 60: 8(float) Load 47(bias) 143 61: 24(fvec4) ImageSampleImplicitLod 58 59 Bias 60 144 62: 24(fvec4) Load 51(color) 145 63: 24(fvec4) FAdd 62 61 146 Store 51(color) 63 147 Line 1 103 0 148 64: 19 Load 21(texSampler2D) 149 65: 27(fvec2) Load 29(coords2D) 150 66: 24(fvec4) ImageSampleImplicitLod 64 65 151 67: 24(fvec4) Load 51(color) 152 68: 24(fvec4) FAdd 67 66 153 Store 51(color) 68 154 Line 1 104 0 155 69: 19 Load 21(texSampler2D) 156 70: 27(fvec2) Load 29(coords2D) 157 71: 8(float) Load 47(bias) 158 72: 24(fvec4) ImageSampleImplicitLod 69 70 Bias 71 159 73: 24(fvec4) Load 51(color) 160 74: 24(fvec4) FAdd 73 72 161 Store 51(color) 74 162 Line 1 106 0 163 77: 24(fvec4) Load 51(color) 164 78: 24(fvec4) Load 26(u) 165 79: 8(float) Load 23(blend) 166 80: 8(float) Load 43(blendscale) 167 81: 8(float) FMul 79 80 168 82: 24(fvec4) CompositeConstruct 81 81 81 81 169 83: 24(fvec4) ExtInst 2(GLSL.std.450) 46(FMix) 77 78 82 170 Store 76(gl_FragColor) 83 171 Line 1 107 0 172 Return 173 FunctionEnd 174 Line 7 1 20 175 12(myAbs(f1;): 8(float) Function None 10 176 11(x): 9(ptr) FunctionParameter 177 13: Label 178 Line 7 2 0 179 30: 8(float) Load 11(x) 180 33: 32(bool) FOrdGreaterThan 30 31 181 SelectionMerge 35 None 182 BranchConditional 33 34 38 183 34: Label 184 Line 7 3 0 185 36: 8(float) Load 11(x) 186 ReturnValue 36 187 38: Label 188 Line 7 6 0 189 39: 8(float) Load 11(x) 190 40: 8(float) FNegate 39 191 ReturnValue 40 192 35: Label 193 Unreachable 194 FunctionEnd