yum-mirror/glslang

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

Wint3rNightEmit spec constant && and || as OpSpecConstantOp81f3df51

main
3.4 KiB70 linesraw
1spv.specConstantOp.logical.comp
2// Module Version 10000
3// Generated by (magic number): 8000b
4// Id's are bound by 46
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                              Name 4  "main"
13                              Name 8  "b"
14                              Name 10  "a"
15                              Name 16  "andConst"
16                              Name 22  "orConst"
17                              Name 31  "nestedConst"
18                              Name 34  "inlineExpr"
19                              Name 43  "unusedConst"
20                              Decorate 10(a) SpecId 0
21                              Decorate 45 BuiltIn WorkgroupSize
22               2:             TypeVoid
23               3:             TypeFunction 2
24               6:             TypeBool
25               7:             TypePointer Function 6(bool)
26               9:             TypeInt 32 0
27           10(a):      9(int) SpecConstant 0
28              11:      9(int) Constant 0
29              12:     6(bool) SpecConstantOp 170 10(a) 11
30              13:      9(int) Constant 1
31              14:      9(int) SpecConstantOp 128 10(a) 13
32              15:     6(bool) SpecConstantOp 170 14 13
33    16(andConst):     6(bool) SpecConstantOp 167 12 15
34              17:     6(bool) SpecConstantOp 168 16(andConst)
35              19:     6(bool) SpecConstantOp 171 10(a) 11
36              20:      9(int) SpecConstantOp 128 10(a) 13
37              21:     6(bool) SpecConstantOp 170 20 13
38     22(orConst):     6(bool) SpecConstantOp 166 19 21
39              23:     6(bool) SpecConstantOp 168 22(orConst)
40              25:     6(bool) SpecConstantOp 170 10(a) 11
41              26:     6(bool) SpecConstantOp 170 10(a) 13
42              27:      9(int) Constant 2
43              28:      9(int) SpecConstantOp 128 10(a) 27
44              29:     6(bool) SpecConstantOp 170 28 27
45              30:     6(bool) SpecConstantOp 166 26 29
46 31(nestedConst):     6(bool) SpecConstantOp 167 25 30
47              32:     6(bool) SpecConstantOp 168 31(nestedConst)
48              35:     6(bool) SpecConstantOp 170 10(a) 11
49              36:      9(int) SpecConstantOp 128 10(a) 13
50              37:     6(bool) SpecConstantOp 170 36 13
51              38:     6(bool) SpecConstantOp 167 35 37
52              39:     6(bool) SpecConstantOp 168 38
53              40:     6(bool) SpecConstantOp 170 10(a) 11
54              41:      9(int) SpecConstantOp 132 10(a) 27
55              42:     6(bool) SpecConstantOp 170 41 11
56 43(unusedConst):     6(bool) SpecConstantOp 167 40 42
57              44:             TypeVector 9(int) 3
58              45:   44(ivec3) ConstantComposite 13 13 13
59         4(main):           2 Function None 3
60               5:             Label
61            8(b):      7(ptr) Variable Function
62  34(inlineExpr):      7(ptr) Variable Function
63                              Store 8(b) 17
64              18:     6(bool) Load 8(b)
65              24:     6(bool) LogicalOr 18 23
66              33:     6(bool) LogicalOr 24 32
67                              Store 8(b) 33
68                              Store 34(inlineExpr) 39
69                              Return
70                              FunctionEnd