yum-mirror/glslang

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

Jeff BolzGL_EXT_long_vector with 2-4 components doesn't require LongVector capability (#4188)09c541ee

main
3.5 KiB77 linesraw
1spv.longVectorLiteral234.comp
2// Module Version 10300
3// Generated by (magic number): 8000b
4// Id's are bound by 48
5
6                              Capability Shader
7               1:             ExtInstImport  "GLSL.std.450"
8                              MemoryModel Logical GLSL450
9                              EntryPoint GLCompute 4  "main"
10                              ExecutionMode 4 LocalSize 1 1 1
11                              Source GLSL 450
12                              SourceExtension  "GL_EXT_long_vector"
13                              Name 4  "main"
14                              Name 9  "v2"
15                              Name 15  "v3"
16                              Name 20  "v4"
17                              Name 35  "n2"
18                              Name 38  "n3"
19                              Name 41  "n4"
20                              Decorate 47 BuiltIn WorkgroupSize
21               2:             TypeVoid
22               3:             TypeFunction 2
23               6:             TypeFloat 32
24               7:             TypeVector 6(float) 2
25               8:             TypePointer Function 7(fvec2)
26              10:    6(float) Constant 1065353216
27              11:    6(float) Constant 1073741824
28              12:    7(fvec2) ConstantComposite 10 11
29              13:             TypeVector 6(float) 3
30              14:             TypePointer Function 13(fvec3)
31              16:    6(float) Constant 1077936128
32              17:   13(fvec3) ConstantComposite 10 11 16
33              18:             TypeVector 6(float) 4
34              19:             TypePointer Function 18(fvec4)
35              21:    6(float) Constant 1082130432
36              22:   18(fvec4) ConstantComposite 10 11 16 21
37              30:    6(float) Constant 0
38              31:   18(fvec4) ConstantComposite 30 30 30 30
39              33:             TypeInt 32 1
40              34:             TypePointer Function 33(int)
41              36:     33(int) Constant 2
42              39:     33(int) Constant 3
43              42:     33(int) Constant 4
44              44:             TypeInt 32 0
45              45:             TypeVector 44(int) 3
46              46:     44(int) Constant 1
47              47:   45(ivec3) ConstantComposite 46 46 46
48         4(main):           2 Function None 3
49               5:             Label
50           9(v2):      8(ptr) Variable Function
51          15(v3):     14(ptr) Variable Function
52          20(v4):     19(ptr) Variable Function
53          35(n2):     34(ptr) Variable Function
54          38(n3):     34(ptr) Variable Function
55          41(n4):     34(ptr) Variable Function
56                              Store 9(v2) 12
57                              Store 15(v3) 17
58                              Store 20(v4) 22
59              23:    7(fvec2) Load 9(v2)
60              24:    7(fvec2) Load 9(v2)
61              25:    7(fvec2) FAdd 24 23
62                              Store 9(v2) 25
63              26:   13(fvec3) Load 15(v3)
64              27:   13(fvec3) CompositeConstruct 11 11 11
65              28:   13(fvec3) FMul 26 27
66                              Store 15(v3) 28
67              29:   18(fvec4) Load 20(v4)
68              32:   18(fvec4) FAdd 29 31
69                              Store 20(v4) 32
70              37:     33(int) Bitcast 36
71                              Store 35(n2) 37
72              40:     33(int) Bitcast 39
73                              Store 38(n3) 40
74              43:     33(int) Bitcast 42
75                              Store 41(n4) 43
76                              Return
77                              FunctionEnd