yum-mirror/glslang

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

Caio OliveiraFix long-vector array length lowering059ccda8

main
2.4 KiB50 linesraw
1spv.longVectorLength.comp
2// Module Version 10300
3// Generated by (magic number): 8000b
4// Id's are bound by 24
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 9  "v"
17                              Name 12  "OutBuf"
18                              MemberName 12(OutBuf) 0  "out_len"
19                              Name 14  "outbuf"
20                              Decorate 12(OutBuf) Block
21                              MemberDecorate 12(OutBuf) 0 Offset 0
22                              Decorate 14(outbuf) Binding 0
23                              Decorate 14(outbuf) DescriptorSet 0
24                              Decorate 23 BuiltIn WorkgroupSize
25               2:             TypeVoid
26               3:             TypeFunction 2
27               6:             TypeInt 32 1
28               7:             TypeVector 6(int) 12
29               8:             TypePointer Function 7(ivec)
30              10:      6(int) Constant 1
31              11:     7(ivec) ConstantComposite 10 10 10 10 10 10 10 10 10 10 10 10
32      12(OutBuf):             TypeStruct 6(int)
33              13:             TypePointer StorageBuffer 12(OutBuf)
34      14(outbuf):     13(ptr) Variable StorageBuffer
35              15:      6(int) Constant 0
36              16:      6(int) Constant 12
37              18:             TypePointer StorageBuffer 6(int)
38              20:             TypeInt 32 0
39              21:             TypeVector 20(int) 3
40              22:     20(int) Constant 1
41              23:   21(ivec3) ConstantComposite 22 22 22
42         4(main):           2 Function None 3
43               5:             Label
44            9(v):      8(ptr) Variable Function
45                              Store 9(v) 11
46              17:      6(int) Bitcast 16
47              19:     18(ptr) AccessChain 14(outbuf) 15
48                              Store 19 17
49                              Return
50                              FunctionEnd