1; SPIR-V
2; Version: 1.3
3; Generator: Google Tint Compiler; 0
4; Bound: 29
5; Schema: 0
6                                OpCapability Shader
7                                OpMemoryModel Logical GLSL450
8                                OpEntryPoint Fragment %main "main" %fragColor %gl_SampleMask
9                                OpExecutionMode %main OriginUpperLeft
10                                OpName %fragColor "fragColor"
11                                OpName %uBuffer "uBuffer"
12                                OpMemberName %uBuffer 0 "color"
13                                OpName %x_12 "x_12"
14                                OpName %gl_SampleMask "gl_SampleMask"
15                                OpName %main "main"
16                                OpDecorate %fragColor Location 0
17                                OpDecorate %uBuffer Block
18                                OpMemberDecorate %uBuffer 0 Offset 0
19                                OpDecorate %x_12 DescriptorSet 0
20                                OpDecorate %x_12 Binding 0
21                                OpDecorate %gl_SampleMask BuiltIn SampleMask
22                       %float = OpTypeFloat 32
23                     %v4float = OpTypeVector %float 4
24         %_ptr_Output_v4float = OpTypePointer Output %v4float
25                           %5 = OpConstantNull %v4float
26                   %fragColor = OpVariable %_ptr_Output_v4float Output %5
27                     %uBuffer = OpTypeStruct %v4float
28        %_ptr_Uniform_uBuffer = OpTypePointer Uniform %uBuffer
29                        %x_12 = OpVariable %_ptr_Uniform_uBuffer Uniform
30                        %uint = OpTypeInt 32 0
31                      %uint_1 = OpConstant %uint 1
32            %_arr_uint_uint_1 = OpTypeArray %uint %uint_1
33%_ptr_Output__arr_uint_uint_1 = OpTypePointer Output %_arr_uint_uint_1
34                          %14 = OpConstantNull %_arr_uint_uint_1
35               %gl_SampleMask = OpVariable %_ptr_Output__arr_uint_uint_1 Output %14
36                        %void = OpTypeVoid
37                          %15 = OpTypeFunction %void
38                      %uint_0 = OpConstant %uint 0
39        %_ptr_Uniform_v4float = OpTypePointer Uniform %v4float
40                         %int = OpTypeInt 32 1
41                       %int_0 = OpConstant %int 0
42            %_ptr_Output_uint = OpTypePointer Output %uint
43                       %int_6 = OpConstant %int 6
44                        %main = OpFunction %void None %15
45                          %18 = OpLabel
46                          %21 = OpAccessChain %_ptr_Uniform_v4float %x_12 %uint_0
47                          %22 = OpLoad %v4float %21
48                                OpStore %fragColor %22
49                          %26 = OpAccessChain %_ptr_Output_uint %gl_SampleMask %int_0
50                          %27 = OpBitcast %uint %int_6
51                                OpStore %26 %27
52                            %loaded_scalar = OpLoad %uint %26
53								OpStore %26 %loaded_scalar
54                             %loaded = OpLoad %_arr_uint_uint_1 %gl_SampleMask
55                                OpStore %gl_SampleMask %loaded
56                                OpReturn
57                                OpFunctionEnd
58