1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
|
link.vk.matchingPC.0.0.frag
Shader version: 450
gl_FragCoord origin is upper left
0:? Sequence
0:15 Function Definition: main( ( global void)
0:15 Function Parameters:
0:17 Sequence
0:17 move second child to first child ( temp highp 4-component vector of float)
0:17 'color' (layout( location=0) out highp 4-component vector of float)
0:17 add ( temp highp 4-component vector of float)
0:17 color: direct index for structure (layout( column_major std430 offset=0) uniform highp 4-component vector of float)
0:17 'uPC' (layout( column_major std430 push_constant) uniform block{layout( column_major std430 offset=0) uniform highp 4-component vector of float color, layout( column_major std430 offset=16) uniform highp 4-component vector of float color2, layout( column_major std430 offset=32) uniform highp float scale})
0:17 Constant:
0:17 0 (const int)
0:17 vector-scale ( temp highp 4-component vector of float)
0:17 Function Call: getColor2( ( global highp 4-component vector of float)
0:17 Function Call: getScale( ( global highp float)
0:? Linker Objects
0:? 'color' (layout( location=0) out highp 4-component vector of float)
0:? 'uPC' (layout( column_major std430 push_constant) uniform block{layout( column_major std430 offset=0) uniform highp 4-component vector of float color, layout( column_major std430 offset=16) uniform highp 4-component vector of float color2, layout( column_major std430 offset=32) uniform highp float scale})
link.vk.matchingPC.0.1.frag
Shader version: 450
gl_FragCoord origin is upper left
0:? Sequence
0:11 Function Definition: getColor2( ( global highp 4-component vector of float)
0:11 Function Parameters:
0:13 Sequence
0:13 Branch: Return with expression
0:13 color2: direct index for structure (layout( column_major std430 offset=16) uniform highp 4-component vector of float)
0:13 'uPC' (layout( column_major std430 push_constant) uniform block{layout( column_major std430 offset=0) uniform highp 4-component vector of float color, layout( column_major std430 offset=16) uniform highp 4-component vector of float color2, layout( column_major std430 offset=32) uniform highp float scale})
0:13 Constant:
0:13 1 (const int)
0:? Linker Objects
0:? 'uPC' (layout( column_major std430 push_constant) uniform block{layout( column_major std430 offset=0) uniform highp 4-component vector of float color, layout( column_major std430 offset=16) uniform highp 4-component vector of float color2, layout( column_major std430 offset=32) uniform highp float scale})
link.vk.matchingPC.0.2.frag
Shader version: 450
gl_FragCoord origin is upper left
0:? Sequence
0:11 Function Definition: getScale( ( global highp float)
0:11 Function Parameters:
0:13 Sequence
0:13 Branch: Return with expression
0:13 scale: direct index for structure (layout( column_major std430 offset=32) uniform highp float)
0:13 'uPC' (layout( column_major std430 push_constant) uniform block{layout( column_major std430 offset=0) uniform highp 4-component vector of float color, layout( column_major std430 offset=16) uniform highp 4-component vector of float color2, layout( column_major std430 offset=32) uniform highp float scale})
0:13 Constant:
0:13 2 (const int)
0:? Linker Objects
0:? 'uPC' (layout( column_major std430 push_constant) uniform block{layout( column_major std430 offset=0) uniform highp 4-component vector of float color, layout( column_major std430 offset=16) uniform highp 4-component vector of float color2, layout( column_major std430 offset=32) uniform highp float scale})
Linked fragment stage:
Shader version: 450
gl_FragCoord origin is upper left
0:? Sequence
0:15 Function Definition: main( ( global void)
0:15 Function Parameters:
0:17 Sequence
0:17 move second child to first child ( temp highp 4-component vector of float)
0:17 'color' (layout( location=0) out highp 4-component vector of float)
0:17 add ( temp highp 4-component vector of float)
0:17 color: direct index for structure (layout( column_major std430 offset=0) uniform highp 4-component vector of float)
0:17 'uPC' (layout( column_major std430 push_constant) uniform block{layout( column_major std430 offset=0) uniform highp 4-component vector of float color, layout( column_major std430 offset=16) uniform highp 4-component vector of float color2, layout( column_major std430 offset=32) uniform highp float scale})
0:17 Constant:
0:17 0 (const int)
0:17 vector-scale ( temp highp 4-component vector of float)
0:17 Function Call: getColor2( ( global highp 4-component vector of float)
0:17 Function Call: getScale( ( global highp float)
0:11 Function Definition: getColor2( ( global highp 4-component vector of float)
0:11 Function Parameters:
0:13 Sequence
0:13 Branch: Return with expression
0:13 color2: direct index for structure (layout( column_major std430 offset=16) uniform highp 4-component vector of float)
0:13 'uPC' (layout( column_major std430 push_constant) uniform block{layout( column_major std430 offset=0) uniform highp 4-component vector of float color, layout( column_major std430 offset=16) uniform highp 4-component vector of float color2, layout( column_major std430 offset=32) uniform highp float scale})
0:13 Constant:
0:13 1 (const int)
0:11 Function Definition: getScale( ( global highp float)
0:11 Function Parameters:
0:13 Sequence
0:13 Branch: Return with expression
0:13 scale: direct index for structure (layout( column_major std430 offset=32) uniform highp float)
0:13 'uPC' (layout( column_major std430 push_constant) uniform block{layout( column_major std430 offset=0) uniform highp 4-component vector of float color, layout( column_major std430 offset=16) uniform highp 4-component vector of float color2, layout( column_major std430 offset=32) uniform highp float scale})
0:13 Constant:
0:13 2 (const int)
0:? Linker Objects
0:? 'color' (layout( location=0) out highp 4-component vector of float)
0:? 'uPC' (layout( column_major std430 push_constant) uniform block{layout( column_major std430 offset=0) uniform highp 4-component vector of float color, layout( column_major std430 offset=16) uniform highp 4-component vector of float color2, layout( column_major std430 offset=32) uniform highp float scale})
// Module Version 10000
// Generated by (magic number): 8000b
// Id's are bound by 39
Capability Shader
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main" 15
ExecutionMode 4 OriginUpperLeft
Source GLSL 450
Name 4 "main"
Name 9 "getColor2("
Name 12 "getScale("
Name 15 "color"
Name 16 "PushConstantBlock"
MemberName 16(PushConstantBlock) 0 "color"
MemberName 16(PushConstantBlock) 1 "color2"
MemberName 16(PushConstantBlock) 2 "scale"
Name 18 "uPC"
Decorate 15(color) Location 0
MemberDecorate 16(PushConstantBlock) 0 Offset 0
MemberDecorate 16(PushConstantBlock) 1 Offset 16
MemberDecorate 16(PushConstantBlock) 2 Offset 32
Decorate 16(PushConstantBlock) Block
2: TypeVoid
3: TypeFunction 2
6: TypeFloat 32
7: TypeVector 6(float) 4
8: TypeFunction 7(fvec4)
11: TypeFunction 6(float)
14: TypePointer Output 7(fvec4)
15(color): 14(ptr) Variable Output
16(PushConstantBlock): TypeStruct 7(fvec4) 7(fvec4) 6(float)
17: TypePointer PushConstant 16(PushConstantBlock)
18(uPC): 17(ptr) Variable PushConstant
19: TypeInt 32 1
20: 19(int) Constant 0
21: TypePointer PushConstant 7(fvec4)
28: 19(int) Constant 1
33: 19(int) Constant 2
34: TypePointer PushConstant 6(float)
4(main): 2 Function None 3
5: Label
22: 21(ptr) AccessChain 18(uPC) 20
23: 7(fvec4) Load 22
24: 7(fvec4) FunctionCall 9(getColor2()
25: 6(float) FunctionCall 12(getScale()
26: 7(fvec4) VectorTimesScalar 24 25
27: 7(fvec4) FAdd 23 26
Store 15(color) 27
Return
FunctionEnd
9(getColor2(): 7(fvec4) Function None 8
10: Label
29: 21(ptr) AccessChain 18(uPC) 28
30: 7(fvec4) Load 29
ReturnValue 30
FunctionEnd
12(getScale(): 6(float) Function None 11
13: Label
35: 34(ptr) AccessChain 18(uPC) 33
36: 6(float) Load 35
ReturnValue 36
FunctionEnd
|