yum-mirror/glslang

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

Caio OliveiraFix long-vector array length lowering059ccda8

main
3.5 KiB71 linesraw
1spv.longVectorArrayLength.comp
2// Module Version 10300
3// Generated by (magic number): 8000b
4// Id's are bound by 34
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 8  "n"
17                              Name 11  "InBuf"
18                              MemberName 11(InBuf) 0  "vals"
19                              Name 13  "inbuf"
20                              Name 17  "OutBuf"
21                              MemberName 17(OutBuf) 0  "out_len"
22                              MemberName 17(OutBuf) 1  "out_last"
23                              Name 19  "outbuf"
24                              Decorate 10 ArrayStride 48
25                              Decorate 11(InBuf) Block
26                              MemberDecorate 11(InBuf) 0 Offset 0
27                              Decorate 13(inbuf) Binding 0
28                              Decorate 13(inbuf) DescriptorSet 0
29                              Decorate 17(OutBuf) Block
30                              MemberDecorate 17(OutBuf) 0 Offset 0
31                              MemberDecorate 17(OutBuf) 1 Offset 4
32                              Decorate 19(outbuf) Binding 1
33                              Decorate 19(outbuf) DescriptorSet 0
34                              Decorate 33 BuiltIn WorkgroupSize
35               2:             TypeVoid
36               3:             TypeFunction 2
37               6:             TypeInt 32 1
38               7:             TypePointer Function 6(int)
39               9:             TypeVector 6(int) 12
40              10:             TypeRuntimeArray 9(ivec)
41       11(InBuf):             TypeStruct 10
42              12:             TypePointer StorageBuffer 11(InBuf)
43       13(inbuf):     12(ptr) Variable StorageBuffer
44              14:             TypeInt 32 0
45      17(OutBuf):             TypeStruct 6(int) 6(int)
46              18:             TypePointer StorageBuffer 17(OutBuf)
47      19(outbuf):     18(ptr) Variable StorageBuffer
48              20:      6(int) Constant 0
49              22:             TypePointer StorageBuffer 6(int)
50              24:      6(int) Constant 1
51              27:      6(int) Constant 11
52              31:             TypeVector 14(int) 3
53              32:     14(int) Constant 1
54              33:   31(ivec3) ConstantComposite 32 32 32
55         4(main):           2 Function None 3
56               5:             Label
57            8(n):      7(ptr) Variable Function
58              15:     14(int) ArrayLength 13(inbuf) 0
59              16:      6(int) Bitcast 15
60                              Store 8(n) 16
61              21:      6(int) Load 8(n)
62              23:     22(ptr) AccessChain 19(outbuf) 20
63                              Store 23 21
64              25:      6(int) Load 8(n)
65              26:      6(int) ISub 25 24
66              28:     22(ptr) AccessChain 13(inbuf) 20 26 27
67              29:      6(int) Load 28
68              30:     22(ptr) AccessChain 19(outbuf) 24
69                              Store 30 29
70                              Return
71                              FunctionEnd