yum-mirror/glslang

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

Caio OliveiraFix long-vector array length lowering059ccda8

main
3.0 KiB62 linesraw
1spv.longVectorFixedArrayLength.comp
2// Module Version 10300
3// Generated by (magic number): 8000b
4// Id's are bound by 33
5
6                              Capability Shader
7                              Capability LongVectorEXT
8                              Extension  "SPV_EXT_long_vector"
9               1:             ExtInstImport  "GLSL.std.450"
10                              MemoryModel Logical GLSL450
11                              EntryPoint GLCompute 4  "main"
12                              ExecutionMode 4 LocalSize 1 1 1
13                              Source GLSL 460
14                              SourceExtension  "GL_EXT_long_vector"
15                              Name 4  "main"
16                              Name 12  "vals"
17                              Name 18  "OutBuf"
18                              MemberName 18(OutBuf) 0  "out_len"
19                              MemberName 18(OutBuf) 1  "out_last"
20                              Name 20  "outbuf"
21                              Decorate 18(OutBuf) Block
22                              MemberDecorate 18(OutBuf) 0 Offset 0
23                              MemberDecorate 18(OutBuf) 1 Offset 4
24                              Decorate 20(outbuf) Binding 0
25                              Decorate 20(outbuf) DescriptorSet 0
26                              Decorate 32 BuiltIn WorkgroupSize
27               2:             TypeVoid
28               3:             TypeFunction 2
29               6:             TypeInt 32 1
30               7:             TypeVector 6(int) 12
31               8:             TypeInt 32 0
32               9:      8(int) Constant 4
33              10:             TypeArray 7(ivec) 9
34              11:             TypePointer Function 10
35              13:      6(int) Constant 0
36              14:      6(int) Constant 1
37              15:     7(ivec) ConstantComposite 14 14 14 14 14 14 14 14 14 14 14 14
38              16:             TypePointer Function 7(ivec)
39      18(OutBuf):             TypeStruct 6(int) 6(int)
40              19:             TypePointer StorageBuffer 18(OutBuf)
41      20(outbuf):     19(ptr) Variable StorageBuffer
42              21:      6(int) Constant 4
43              22:             TypePointer StorageBuffer 6(int)
44              24:      6(int) Constant 3
45              25:      6(int) Constant 11
46              26:             TypePointer Function 6(int)
47              30:             TypeVector 8(int) 3
48              31:      8(int) Constant 1
49              32:   30(ivec3) ConstantComposite 31 31 31
50         4(main):           2 Function None 3
51               5:             Label
52        12(vals):     11(ptr) Variable Function
53              17:     16(ptr) AccessChain 12(vals) 13
54                              Store 17 15
55              23:     22(ptr) AccessChain 20(outbuf) 13
56                              Store 23 21
57              27:     26(ptr) AccessChain 12(vals) 24 25
58              28:      6(int) Load 27
59              29:     22(ptr) AccessChain 20(outbuf) 14
60                              Store 29 28
61                              Return
62                              FunctionEnd