Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Functions
SkSLBench.h File Reference
#include "include/core/SkTypes.h"

Go to the source code of this file.

Functions

void RunSkSLModuleBenchmarks (NanoJSONResultsWriter *)
 

Function Documentation

◆ RunSkSLModuleBenchmarks()

void RunSkSLModuleBenchmarks ( NanoJSONResultsWriter log)

Definition at line 296 of file SkSLBench.cpp.

299 {
300 x_t = dot(_tmp_3_coords, _tmp_3_coords) / _tmp_3_coords.x;
301 }
302 else if (bool(int(0)))
303 {
304 x_t = length(_tmp_3_coords) - _tmp_3_coords.x * float(uinvR1_S1_c0_c0_c1_c0);
305 }
306 else
307 {
308 float temp = _tmp_3_coords.x * _tmp_3_coords.x - _tmp_3_coords.y * _tmp_3_coords.y;
309 if (temp >= 0.0)
310 {
311 if (bool(int(0)) || !bool(int(1)))
312 {
313 x_t = -sqrt(temp) - _tmp_3_coords.x * float(uinvR1_S1_c0_c0_c1_c0);
314 }
315 else
316 {
317 x_t = sqrt(temp) - _tmp_3_coords.x * float(uinvR1_S1_c0_c0_c1_c0);
318 }
319 }
320 }
321 if (!bool(int(0)))
322 {
323 if (x_t <= 0.0)
324 {
325 v = -1.0;
326 }
327 }
328 if (bool(int(1)))
329 {
330 if (bool(int(0)))
331 {
332 t = x_t;
333 }
334 else
335 {
336 t = x_t + float(ufx_S1_c0_c0_c1_c0);
337 }
338 }
339 else
340 {
341 if (bool(int(0)))
342 {
343 t = -x_t;
344 }
345 else
346 {
347 t = -x_t + float(ufx_S1_c0_c0_c1_c0);
348 }
349 }
350 if (bool(int(0)))
351 {
352 t = 1.0 - t;
353 }
354 return half4(half4(half(t), v, 0.0, 0.0));
355}
356half4 MatrixEffect_S1_c0_c0_c1(half4 _input)
357{
358 return TwoPointConicalFocalLayout_S1_c0_c0_c1_c0(_input);
359}
360half4 ClampedGradient_S1_c0_c0(half4 _input)
361{
362 half4 _tmp_4_inColor = _input;
363 half4 t = MatrixEffect_S1_c0_c0_c1(_tmp_4_inColor);
size_t length
SINT T dot(const Vec< N, T > &a, const Vec< N, T > &b)
Definition SkVx.h:964
SIN Vec< N, float > sqrt(const Vec< N, float > &x)
Definition SkVx.h:706
Vec< 4, uint16_t > half4
Definition SkVx.h:1176