1; SPIR-V
2; Version: 1.3
3; Generator: Google Tint Compiler; 0
4; Bound: 48
5; Schema: 0
6               OpCapability Shader
7               OpMemoryModel Logical GLSL450
8               OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size
9               OpEntryPoint Fragment %fragment_main "fragment_main"
10               OpEntryPoint GLCompute %compute_main "compute_main"
11               OpExecutionMode %fragment_main OriginUpperLeft
12               OpExecutionMode %compute_main LocalSize 1 1 1
13               OpName %value "value"
14               OpName %vertex_point_size "vertex_point_size"
15               OpName %arg_0 "arg_0"
16               OpName %arg_1 "arg_1"
17               OpName %textureSampleGrad_2ecd8f "textureSampleGrad_2ecd8f"
18               OpName %res "res"
19               OpName %vertex_main_inner "vertex_main_inner"
20               OpName %vertex_main "vertex_main"
21               OpName %fragment_main "fragment_main"
22               OpName %compute_main "compute_main"
23               OpDecorate %value BuiltIn Position
24               OpDecorate %vertex_point_size BuiltIn PointSize
25               OpDecorate %arg_0 DescriptorSet 1
26               OpDecorate %arg_0 Binding 0
27               OpDecorate %arg_1 DescriptorSet 1
28               OpDecorate %arg_1 Binding 1
29      %float = OpTypeFloat 32
30    %v4float = OpTypeVector %float 4
31%_ptr_Output_v4float = OpTypePointer Output %v4float
32          %5 = OpConstantNull %v4float
33      %value = OpVariable %_ptr_Output_v4float Output %5
34%_ptr_Output_float = OpTypePointer Output %float
35          %8 = OpConstantNull %float
36%vertex_point_size = OpVariable %_ptr_Output_float Output %8
37         %11 = OpTypeImage %float 2D 0 1 0 1 Unknown
38%_ptr_UniformConstant_11 = OpTypePointer UniformConstant %11
39      %arg_0 = OpVariable %_ptr_UniformConstant_11 UniformConstant
40         %14 = OpTypeSampler
41%_ptr_UniformConstant_14 = OpTypePointer UniformConstant %14
42      %arg_1 = OpVariable %_ptr_UniformConstant_14 UniformConstant
43       %void = OpTypeVoid
44         %15 = OpTypeFunction %void
45         %22 = OpTypeSampledImage %11
46    %v3float = OpTypeVector %float 3
47    %float_0 = OpConstant %float 0
48        %int = OpTypeInt 32 1
49      %int_1 = OpConstant %int 1
50    %v2float = OpTypeVector %float 2
51         %31 = OpConstantNull %v2float
52%_ptr_Function_v4float = OpTypePointer Function %v4float
53         %34 = OpTypeFunction %v4float
54    %float_1 = OpConstant %float 1
55%textureSampleGrad_2ecd8f = OpFunction %void None %15
56         %18 = OpLabel
57        %res = OpVariable %_ptr_Function_v4float Function %5
58         %20 = OpLoad %14 %arg_1
59         %21 = OpLoad %11 %arg_0
60         %23 = OpSampledImage %22 %21 %20
61         %26 = OpConvertSToF %float %int_1
62         %29 = OpCompositeConstruct %v3float %float_0 %float_0 %26
63         %19 = OpImageSampleExplicitLod %v4float %23 %29 Grad %31 %31
64               OpStore %res %19
65               OpReturn
66               OpFunctionEnd
67%vertex_main_inner = OpFunction %v4float None %34
68         %36 = OpLabel
69         %37 = OpFunctionCall %void %textureSampleGrad_2ecd8f
70               OpReturnValue %5
71               OpFunctionEnd
72%vertex_main = OpFunction %void None %15
73         %39 = OpLabel
74         %40 = OpFunctionCall %v4float %vertex_main_inner
75               OpStore %value %40
76               OpStore %vertex_point_size %float_1
77               OpReturn
78               OpFunctionEnd
79%fragment_main = OpFunction %void None %15
80         %43 = OpLabel
81         %44 = OpFunctionCall %void %textureSampleGrad_2ecd8f
82               OpReturn
83               OpFunctionEnd
84%compute_main = OpFunction %void None %15
85         %46 = OpLabel
86         %47 = OpFunctionCall %void %textureSampleGrad_2ecd8f
87               OpReturn
88               OpFunctionEnd
89