1spv.sampledImageBlock.frag 2// Module Version 10000 3// Generated by (magic number): 8000b 4// Id's are bound by 55 5 6 Capability Shader 7 1: ExtInstImport "GLSL.std.450" 8 MemoryModel Logical GLSL450 9 EntryPoint Fragment 4 "main" 36 45 10 ExecutionMode 4 OriginUpperLeft 11 Source GLSL 450 12 Name 4 "main" 13 Name 9 "texel" 14 Name 12 "tex0" 15 Name 16 "samp0" 16 Name 21 "ParamBuffer" 17 MemberName 21(ParamBuffer) 0 "cond" 18 Name 23 "paramBuffer" 19 Name 36 "texCoord" 20 Name 45 "fragColor" 21 Decorate 12(tex0) Binding 0 22 Decorate 12(tex0) DescriptorSet 0 23 Decorate 16(samp0) Binding 1 24 Decorate 16(samp0) DescriptorSet 0 25 Decorate 21(ParamBuffer) Block 26 MemberDecorate 21(ParamBuffer) 0 Offset 0 27 Decorate 23(paramBuffer) Binding 2 28 Decorate 23(paramBuffer) DescriptorSet 0 29 Decorate 36(texCoord) Flat 30 Decorate 36(texCoord) Location 0 31 Decorate 45(fragColor) Location 0 32 2: TypeVoid 33 3: TypeFunction 2 34 6: TypeFloat 32 35 7: TypeVector 6(float) 4 36 8: TypePointer Function 7(fvec4) 37 10: TypeImage 6(float) 2D sampled format:Unknown 38 11: TypePointer UniformConstant 10 39 12(tex0): 11(ptr) Variable UniformConstant 40 14: TypeSampler 41 15: TypePointer UniformConstant 14 42 16(samp0): 15(ptr) Variable UniformConstant 43 18: TypeSampledImage 10 44 20: TypeInt 32 1 45 21(ParamBuffer): TypeStruct 20(int) 46 22: TypePointer Uniform 21(ParamBuffer) 47 23(paramBuffer): 22(ptr) Variable Uniform 48 24: 20(int) Constant 0 49 25: TypePointer Uniform 20(int) 50 28: TypeBool 51 30: TypeVector 20(int) 2 52 31: TypePointer Function 30(ivec2) 53 35: TypePointer Input 30(ivec2) 54 36(texCoord): 35(ptr) Variable Input 55 44: TypePointer Output 7(fvec4) 56 45(fragColor): 44(ptr) Variable Output 57 46: TypeVector 6(float) 3 58 49: 6(float) Constant 1065353216 59 4(main): 2 Function None 3 60 5: Label 61 9(texel): 8(ptr) Variable Function 62 32: 31(ptr) Variable Function 63 13: 10 Load 12(tex0) 64 17: 14 Load 16(samp0) 65 19: 18 SampledImage 13 17 66 26: 25(ptr) AccessChain 23(paramBuffer) 24 67 27: 20(int) Load 26 68 29: 28(bool) IEqual 27 24 69 SelectionMerge 34 None 70 BranchConditional 29 33 38 71 33: Label 72 37: 30(ivec2) Load 36(texCoord) 73 Store 32 37 74 Branch 34 75 38: Label 76 39: 30(ivec2) Load 36(texCoord) 77 40: 30(ivec2) VectorShuffle 39 39 1 0 78 Store 32 40 79 Branch 34 80 34: Label 81 41: 30(ivec2) Load 32 82 54: 18 SampledImage 13 17 83 42: 10 Image 54 84 43: 7(fvec4) ImageFetch 42 41 Lod 24 85 Store 9(texel) 43 86 47: 7(fvec4) Load 9(texel) 87 48: 46(fvec3) VectorShuffle 47 47 0 1 2 88 50: 6(float) CompositeExtract 48 0 89 51: 6(float) CompositeExtract 48 1 90 52: 6(float) CompositeExtract 48 2 91 53: 7(fvec4) CompositeConstruct 50 51 52 49 92 Store 45(fragColor) 53 93 Return 94 FunctionEnd 95