1spv.bool.vert
2// Module Version 10000
3// Generated by (magic number): 80007
4// Id's are bound by 46
5
6                              Capability Shader
7               1:             ExtInstImport  "GLSL.std.450"
8                              MemoryModel Logical GLSL450
9                              EntryPoint Vertex 4  "main" 24
10                              Source GLSL 450
11                              Name 4  "main"
12                              Name 10  "foo(b1;"
13                              Name 9  "b"
14                              Name 22  "gl_PerVertex"
15                              MemberName 22(gl_PerVertex) 0  "gl_Position"
16                              MemberName 22(gl_PerVertex) 1  "gl_PointSize"
17                              MemberName 22(gl_PerVertex) 2  "gl_ClipDistance"
18                              MemberName 22(gl_PerVertex) 3  "gl_CullDistance"
19                              Name 24  ""
20                              Name 27  "ubname"
21                              MemberName 27(ubname) 0  "b"
22                              Name 29  "ubinst"
23                              Name 30  "param"
24                              MemberDecorate 22(gl_PerVertex) 0 BuiltIn Position
25                              MemberDecorate 22(gl_PerVertex) 1 BuiltIn PointSize
26                              MemberDecorate 22(gl_PerVertex) 2 BuiltIn ClipDistance
27                              MemberDecorate 22(gl_PerVertex) 3 BuiltIn CullDistance
28                              Decorate 22(gl_PerVertex) Block
29                              MemberDecorate 27(ubname) 0 Offset 0
30                              Decorate 27(ubname) Block
31                              Decorate 29(ubinst) DescriptorSet 0
32               2:             TypeVoid
33               3:             TypeFunction 2
34               6:             TypeBool
35               7:             TypePointer Function 6(bool)
36               8:             TypeFunction 6(bool) 7(ptr)
37              13:     6(bool) ConstantFalse
38              17:             TypeFloat 32
39              18:             TypeVector 17(float) 4
40              19:             TypeInt 32 0
41              20:     19(int) Constant 1
42              21:             TypeArray 17(float) 20
4322(gl_PerVertex):             TypeStruct 18(fvec4) 17(float) 21 21
44              23:             TypePointer Output 22(gl_PerVertex)
45              24:     23(ptr) Variable Output
46              25:             TypeInt 32 1
47              26:     25(int) Constant 0
48      27(ubname):             TypeStruct 19(int)
49              28:             TypePointer Uniform 27(ubname)
50      29(ubinst):     28(ptr) Variable Uniform
51              31:             TypePointer Uniform 19(int)
52              34:     19(int) Constant 0
53              37:   17(float) Constant 0
54              38:   18(fvec4) ConstantComposite 37 37 37 37
55              39:   17(float) Constant 1065353216
56              40:   18(fvec4) ConstantComposite 39 39 39 39
57              41:             TypeVector 6(bool) 4
58              44:             TypePointer Output 18(fvec4)
59         4(main):           2 Function None 3
60               5:             Label
61       30(param):      7(ptr) Variable Function
62              32:     31(ptr) AccessChain 29(ubinst) 26
63              33:     19(int) Load 32
64              35:     6(bool) INotEqual 33 34
65                              Store 30(param) 35
66              36:     6(bool) FunctionCall 10(foo(b1;) 30(param)
67              42:   41(bvec4) CompositeConstruct 36 36 36 36
68              43:   18(fvec4) Select 42 38 40
69              45:     44(ptr) AccessChain 24 26
70                              Store 45 43
71                              Return
72                              FunctionEnd
73     10(foo(b1;):     6(bool) Function None 8
74            9(b):      7(ptr) FunctionParameter
75              11:             Label
76              12:     6(bool) Load 9(b)
77              14:     6(bool) LogicalNotEqual 12 13
78                              ReturnValue 14
79                              FunctionEnd
80