spv.gcnShaderBallotAMD.comp // Module Version 10000 // Generated by (magic number): 8000b // Id's are bound by 36 Capability Shader Capability Int64 Capability SubgroupBallotKHR Extension "SPV_KHR_shader_ballot" 1: ExtInstImport "GLSL.std.450" MemoryModel Logical GLSL450 EntryPoint GLCompute 4 "main" 15 ExecutionMode 4 LocalSize 64 1 1 Source GLSL 450 SourceExtension "GL_AMD_gcn_shader" SourceExtension "GL_ARB_gpu_shader_int64" Name 4 "main" Name 8 "Ballots" MemberName 8(Ballots) 0 "ballots" Name 10 "" Name 15 "gl_LocalInvocationIndex" Decorate 7 ArrayStride 8 Decorate 8(Ballots) BufferBlock MemberDecorate 8(Ballots) 0 Offset 0 Decorate 10 Binding 0 Decorate 10 DescriptorSet 0 Decorate 15(gl_LocalInvocationIndex) BuiltIn LocalInvocationIndex Decorate 35 BuiltIn WorkgroupSize 2: TypeVoid 3: TypeFunction 2 6: TypeInt 64 0 7: TypeRuntimeArray 6(int64_t) 8(Ballots): TypeStruct 7 9: TypePointer Uniform 8(Ballots) 10: 9(ptr) Variable Uniform 11: TypeInt 32 1 12: 11(int) Constant 0 13: TypeInt 32 0 14: TypePointer Input 13(int) 15(gl_LocalInvocationIndex): 14(ptr) Variable Input 18: 13(int) Constant 2 20: 13(int) Constant 0 21: TypeBool 23: TypeVector 13(int) 4 27: TypeVector 13(int) 2 30: TypePointer Uniform 6(int64_t) 32: TypeVector 13(int) 3 33: 13(int) Constant 64 34: 13(int) Constant 1 35: 32(ivec3) ConstantComposite 33 34 34 4(main): 2 Function None 3 5: Label 16: 13(int) Load 15(gl_LocalInvocationIndex) 17: 13(int) Load 15(gl_LocalInvocationIndex) 19: 13(int) UMod 17 18 22: 21(bool) IEqual 19 20 24: 23(ivec4) SubgroupBallotKHR 22 25: 13(int) CompositeExtract 24 0 26: 13(int) CompositeExtract 24 1 28: 27(ivec2) CompositeConstruct 25 26 29: 6(int64_t) Bitcast 28 31: 30(ptr) AccessChain 10 12 16 Store 31 29 Return FunctionEnd