yum-mirror/glslang

git clone https://git.yummers.dev/yum-mirror/glslang

Wint3rNightAdd ballotAMD from GL_AMD_gcn_shader2ba07bca

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