1spv.conditionalDemote.frag 2// Module Version 10000 3// Generated by (magic number): 8000a 4// Id's are bound by 38 5 6 Capability Shader 7 Capability DemoteToHelperInvocationEXT 8 Extension "SPV_EXT_demote_to_helper_invocation" 9 1: ExtInstImport "GLSL.std.450" 10 MemoryModel Logical GLSL450 11 EntryPoint Fragment 4 "main" 17 36 12 ExecutionMode 4 OriginUpperLeft 13 Source GLSL 460 14 SourceExtension "GL_EXT_demote_to_helper_invocation" 15 Name 4 "main" 16 Name 9 "v" 17 Name 13 "tex" 18 Name 17 "coord" 19 Name 33 "x" 20 Name 36 "o" 21 Decorate 13(tex) DescriptorSet 0 22 Decorate 13(tex) Binding 0 23 Decorate 17(coord) Location 0 24 Decorate 36(o) Location 0 25 2: TypeVoid 26 3: TypeFunction 2 27 6: TypeFloat 32 28 7: TypeVector 6(float) 4 29 8: TypePointer Function 7(fvec4) 30 10: TypeImage 6(float) 2D sampled format:Unknown 31 11: TypeSampledImage 10 32 12: TypePointer UniformConstant 11 33 13(tex): 12(ptr) Variable UniformConstant 34 15: TypeVector 6(float) 2 35 16: TypePointer Input 15(fvec2) 36 17(coord): 16(ptr) Variable Input 37 21: 6(float) Constant 1036831949 38 22: 6(float) Constant 1045220557 39 23: 6(float) Constant 1050253722 40 24: 6(float) Constant 1053609165 41 25: 7(fvec4) ConstantComposite 21 22 23 24 42 26: TypeBool 43 27: TypeVector 26(bool) 4 44 32: TypePointer Function 26(bool) 45 35: TypePointer Output 7(fvec4) 46 36(o): 35(ptr) Variable Output 47 4(main): 2 Function None 3 48 5: Label 49 9(v): 8(ptr) Variable Function 50 33(x): 32(ptr) Variable Function 51 14: 11 Load 13(tex) 52 18: 15(fvec2) Load 17(coord) 53 19: 7(fvec4) ImageSampleImplicitLod 14 18 54 Store 9(v) 19 55 20: 7(fvec4) Load 9(v) 56 28: 27(bvec4) FOrdEqual 20 25 57 29: 26(bool) All 28 58 SelectionMerge 31 None 59 BranchConditional 29 30 31 60 30: Label 61 DemoteToHelperInvocationEXT 62 Branch 31 63 31: Label 64 34: 26(bool) IsHelperInvocationEXT 65 Store 33(x) 34 66 37: 7(fvec4) Load 9(v) 67 Store 36(o) 37 68 Return 69 FunctionEnd 70