wangzhibo
2023-10-31 86070cd00485c47a2c5c3ffa4a9bae6648dd05c6
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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
2­T±­ ª,ù-ñ§†6784271c1c62        P‹ò    aPosition _uaPositionÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿU‹õaData_uaDataÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ    õuMode_uuModeÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ\‹ò
uTransform _uuTransformÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ^‹sColor0    _usColor0ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ^‹ sRenderTasks_usRenderTasksÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ^‹    sGpuCache _usGpuCacheÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ^‹sTransformPalette_usTransformPaletteÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ^‹sPrimitiveHeadersF_usPrimitiveHeadersFÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿʍsPrimitiveHeadersI_usPrimitiveHeadersIÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ^‹    sClipMask _usClipMaskÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿŒŒR‹ò
oFragColor _uoFragColorÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ    ^‹^‹^‹^‹^‹ʍ^‹                ÿÿÿÿ    L-hÁ±ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ<<    ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ6:struct VS_OUTPUT
{
    float4 dx_Position : SV_Position;
    float4 gl_Position : TEXCOORD6;
    float4 gl_FragCoord : TEXCOORD7;
    nointerpolation float4 v0 : TEXCOORD0;
    nointerpolation float4 v1 : TEXCOORD1;
    nointerpolation float4 v2 : TEXCOORD2;
    nointerpolation float3 v3 : TEXCOORD3;
    float2 v4 : TEXCOORD4;
    float2 v5 : TEXCOORD5;
};
#pragma warning( disable: 3556 3571 )
struct _RectWithEndpoint
{
    float2 _p0;
    float2 _p1;
};
#pragma pack_matrix(row_major)
struct rm__RectWithEndpoint
{
    float2 _p0;
    float2 _p1;
};
#pragma pack_matrix(column_major)
struct std__RectWithEndpoint
{
    float2 _p0;
    float2 _p1;
};
#pragma pack_matrix(row_major)
struct std_rm__RectWithEndpoint
{
    float2 _p0;
    float2 _p1;
};
#pragma pack_matrix(column_major)
struct std_fp__RectWithEndpoint
{
    float2 _p0;
    float2 _p1;
};
#pragma pack_matrix(row_major)
struct std_rm_fp__RectWithEndpoint
{
    float2 _p0;
    float2 _p1;
};
#pragma pack_matrix(column_major)
_RectWithEndpoint _RectWithEndpoint_ctor(float2 x0, float2 x1)
{
    _RectWithEndpoint structure = { x0, x1};
    return structure;
}
bool2 bvec2_ctor(bool x0)
{
    return bool2(x0, x0);
}
float float_ctor_int(int x0)
{
    return float(x0);
}
float2 vec2_ctor_int2(int2 x0)
{
    return float2(x0);
}
int int_ctor_uint(uint x0)
{
    return int(x0);
}
uint uint_ctor_int(int x0)
{
    return uint(x0);
}
// Uniforms
 
uniform int _uMode : register(c0);
uniform float4x4 _uTransform : register(c1);
static const uint _sColor0 = 0;
static const uint _sRenderTasks = 1;
static const uint _sGpuCache = 2;
static const uint _sTransformPalette = 3;
static const uint _sPrimitiveHeadersF = 4;
uniform Texture2D<float4> textures2D[5] : register(t0);
uniform SamplerState samplers2D[5] : register(s0);
static const uint _sPrimitiveHeadersI = 5;
static const uint textureIndexOffset2D_int4_ = 5;
static const uint samplerIndexOffset2D_int4_ = 5;
uniform Texture2D<int4> textures2D_int4_[1] : register(t5);
uniform SamplerState samplers2D_int4_[1] : register(s5);
#ifdef ANGLE_ENABLE_LOOP_FLATTEN
#define LOOP [loop]
#define FLATTEN [flatten]
#else
#define LOOP
#define FLATTEN
#endif
 
#define ATOMIC_COUNTER_ARRAY_STRIDE 4
 
// Attributes
static float2 _aPosition = {0, 0};
static int4 _aData = {0, 0, 0, 0};
 
static float4 gl_Position = float4(0, 0, 0, 0);
 
// Varyings
static nointerpolation float4 _vClipMaskUvBounds = {0, 0, 0, 0};
static  float2 _vClipMaskUv = {0, 0};
static nointerpolation float4 _v_color = {0, 0, 0, 0};
static nointerpolation float3 _v_mask_swizzle = {0, 0, 0};
static nointerpolation float4 _v_uv_bounds = {0, 0, 0, 0};
static  float2 _v_uv = {0, 0};
 
cbuffer DriverConstants : register(b1)
{
    float4 dx_ViewAdjust : packoffset(c1);
    float2 dx_ViewCoords : packoffset(c2);
    float2 dx_ViewScale  : packoffset(c3);
    float clipControlOrigin : packoffset(c3.w);
    float clipControlZeroToOne : packoffset(c4);
    struct SamplerMetadata
    {
        int baseLevel;
        int internalFormatBits;
        int wrapModes;
        int padding;
        int4 intBorderColor;
    };
    SamplerMetadata samplerMetadata[6] : packoffset(c5);
};
 
int2 gl_texture2DSize(uint samplerIndex, int lod)
{
    int baseLevel = 0;
    uint width; uint height; uint numberOfLevels;
    textures2D[samplerIndex].GetDimensions(baseLevel, width, height, numberOfLevels);
    width = max(width >> lod, 1);
    height = max(height >> lod, 1);
    return int2(width, height);
}
 
float4 gl_texture2DFetch(uint samplerIndex, int2 t, int mip)
{
    return textures2D[samplerIndex].Load(int3(t.x, t.y, mip));
}
 
int4 gl_texture2D_int4_Fetch(uint samplerIndex, int2 t, int mip)
{
    const uint textureIndex = samplerIndex - textureIndexOffset2D_int4_;
    const uint samplerArrayIndex = samplerIndex - samplerIndexOffset2D_int4_;
    int baseLevel = 0;
    return textures2D_int4_[textureIndex].Load(int3(t.x, t.y, mip));
}
 
float2 mix_emu(float2 x, float2 y, bool2 a)
{
    return a ? y : x;
}
 
 
;
@@ VERTEX ATTRIBUTES @@
 
VS_OUTPUT generateOutput(VS_INPUT input)
{
    VS_OUTPUT output;
    output.gl_Position = gl_Position;
    output.dx_Position.x = gl_Position.x;
    output.dx_Position.y = clipControlOrigin * gl_Position.y;
    if (clipControlZeroToOne)
    {
        output.dx_Position.z = gl_Position.z;
    } else {
        output.dx_Position.z = (gl_Position.z + gl_Position.w) * 0.5;
    }
    output.dx_Position.w = gl_Position.w;
    output.gl_FragCoord = gl_Position;
    output.v0 = _vClipMaskUvBounds;
    output.v1 = _v_color;
    output.v2 = _v_uv_bounds;
    output.v3 = _v_mask_swizzle;
    output.v4 = _vClipMaskUv;
    output.v5 = _v_uv;
 
    return output;
}
 
VS_OUTPUT main(VS_INPUT input){
    initAttributes(input);
 
float2 _glyph_offset_15624 = {0, 0};
int _color_mode_25625 = {0};
float2 _clip_area_task_rect_p0_35626 = {0, 0};
float2 _clip_area_task_rect_p1_45627 = {0, 0};
float _ph_z_55628 = {0};
int4 _ph_user_data_65629 = {0, 0, 0, 0};
int _instance_picture_task_address_75630 = {0};
int _instance_clip_address_85631 = {0};
int _instance_segment_index_95632 = {0};
int _instance_flags_105633 = {0};
int _instance_resource_address_115634 = {0};
(_instance_picture_task_address_75630 = (_aData.y >> 16));
(_instance_clip_address_85631 = (_aData.y & 65535));
(_instance_segment_index_95632 = (_aData.z & 65535));
(_instance_flags_105633 = (_aData.z >> 16));
(_instance_resource_address_115634 = (_aData.w & 16777215));
int2 _tmpvar_125635 = {0, 0};
(_tmpvar_125635.x = int_ctor_uint((2 * (uint_ctor_int(_aData.x) % 512))));
(_tmpvar_125635.y = int_ctor_uint((uint_ctor_int(_aData.x) / 512)));
float4 _tmpvar_135636 = {0, 0, 0, 0};
(_tmpvar_135636 = gl_texture2DFetch(_sPrimitiveHeadersF, _tmpvar_125635, 0));
float4 _tmpvar_145637 = {0, 0, 0, 0};
(_tmpvar_145637 = gl_texture2DFetch(_sPrimitiveHeadersF, (_tmpvar_125635 + int2(1, 0)), 0));
int2 _tmpvar_155638 = {0, 0};
(_tmpvar_155638.x = int_ctor_uint((2 * (uint_ctor_int(_aData.x) % 512))));
(_tmpvar_155638.y = int_ctor_uint((uint_ctor_int(_aData.x) / 512)));
int4 _tmpvar_165639 = {0, 0, 0, 0};
(_tmpvar_165639 = gl_texture2D_int4_Fetch(_sPrimitiveHeadersI, _tmpvar_155638, 0));
(_ph_z_55628 = float_ctor_int(_tmpvar_165639.x));
(_ph_user_data_65629 = gl_texture2D_int4_Fetch(_sPrimitiveHeadersI, (_tmpvar_155638 + int2(1, 0)), 0));
float4x4 _transform_m_175640 = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
int _tmpvar_185641 = {0};
(_tmpvar_185641 = (_tmpvar_165639.z & 8388607));
int2 _tmpvar_195642 = {0, 0};
(_tmpvar_195642.x = int_ctor_uint((8 * (uint_ctor_int(_tmpvar_185641) % 128))));
(_tmpvar_195642.y = int_ctor_uint((uint_ctor_int(_tmpvar_185641) / 128)));
(_transform_m_175640[0] = gl_texture2DFetch(_sTransformPalette, _tmpvar_195642, 0));
(_transform_m_175640[1] = gl_texture2DFetch(_sTransformPalette, (_tmpvar_195642 + int2(1, 0)), 0));
(_transform_m_175640[2] = gl_texture2DFetch(_sTransformPalette, (_tmpvar_195642 + int2(2, 0)), 0));
(_transform_m_175640[3] = gl_texture2DFetch(_sTransformPalette, (_tmpvar_195642 + int2(3, 0)), 0));
_RectWithEndpoint _area_task_rect_205643 = {0, 0, 0, 0};
float _area_device_pixel_scale_215644 = {0};
float2 _area_screen_origin_225645 = {0, 0};
if ((_instance_clip_address_85631 >= 32767))
{
(_area_task_rect_205643 = _RectWithEndpoint_ctor(float2(0.0, 0.0), float2(0.0, 0.0)));
(_area_device_pixel_scale_215644 = 0.0);
(_area_screen_origin_225645 = float2(0.0, 0.0));
}
else
{
int2 _tmpvar_235646 = {0, 0};
(_tmpvar_235646.x = int_ctor_uint((2 * (uint_ctor_int(_instance_clip_address_85631) % 512))));
(_tmpvar_235646.y = int_ctor_uint((uint_ctor_int(_instance_clip_address_85631) / 512)));
float4 _tmpvar_245647 = {0, 0, 0, 0};
(_tmpvar_245647 = gl_texture2DFetch(_sRenderTasks, _tmpvar_235646, 0));
float4 _tmpvar_255648 = {0, 0, 0, 0};
(_tmpvar_255648 = gl_texture2DFetch(_sRenderTasks, (_tmpvar_235646 + int2(1, 0)), 0));
(_area_task_rect_205643._p0 = _tmpvar_245647.xy);
(_area_task_rect_205643._p1 = _tmpvar_245647.zw);
(_area_device_pixel_scale_215644 = _tmpvar_255648.x);
(_area_screen_origin_225645 = _tmpvar_255648.yz);
}
(_clip_area_task_rect_p0_35626 = _area_task_rect_205643._p0);
(_clip_area_task_rect_p1_45627 = _area_task_rect_205643._p1);
int2 _tmpvar_265649 = {0, 0};
(_tmpvar_265649.x = int_ctor_uint((2 * (uint_ctor_int(_instance_picture_task_address_75630) % 512))));
(_tmpvar_265649.y = int_ctor_uint((uint_ctor_int(_instance_picture_task_address_75630) / 512)));
float4 _tmpvar_275650 = {0, 0, 0, 0};
(_tmpvar_275650 = gl_texture2DFetch(_sRenderTasks, _tmpvar_265649, 0));
float4 _tmpvar_285651 = {0, 0, 0, 0};
(_tmpvar_285651 = gl_texture2DFetch(_sRenderTasks, (_tmpvar_265649 + int2(1, 0)), 0));
int _tmpvar_295652 = {0};
(_tmpvar_295652 = ((_instance_flags_105633 >> 8) & 255));
int _tmpvar_305653 = {0};
(_tmpvar_305653 = (_instance_flags_105633 & 255));
(_color_mode_25625 = _tmpvar_305653);
int2 _tmpvar_315654 = {0, 0};
(_tmpvar_315654.x = int_ctor_uint((uint_ctor_int(_tmpvar_165639.y) % 1024)));
(_tmpvar_315654.y = int_ctor_uint((uint_ctor_int(_tmpvar_165639.y) / 1024)));
float4 _tmpvar_325655 = {0, 0, 0, 0};
float4 _tmpvar_335656 = {0, 0, 0, 0};
(_tmpvar_325655 = gl_texture2DFetch(_sGpuCache, _tmpvar_315654, 0));
(_tmpvar_335656 = gl_texture2DFetch(_sGpuCache, (_tmpvar_315654 + int2(1, 0)), 0));
if ((_tmpvar_305653 == 0))
{
(_color_mode_25625 = _uMode);
}
int _tmpvar_345657 = {0};
(_tmpvar_345657 = ((_tmpvar_165639.y + 2) + int_ctor_uint((uint_ctor_int(_instance_segment_index_95632) / 2))));
int2 _tmpvar_355658 = {0, 0};
(_tmpvar_355658.x = int_ctor_uint((uint_ctor_int(_tmpvar_345657) % 1024)));
(_tmpvar_355658.y = int_ctor_uint((uint_ctor_int(_tmpvar_345657) / 1024)));
float4 _tmpvar_365659 = {0, 0, 0, 0};
(_tmpvar_365659 = gl_texture2DFetch(_sGpuCache, _tmpvar_355658, 0));
(_glyph_offset_15624 = (mix_emu(_tmpvar_365659.xy, _tmpvar_365659.zw, bvec2_ctor(((uint_ctor_int(_instance_segment_index_95632) % 2) == 1))) + _tmpvar_135636.xy));
int2 _tmpvar_375660 = {0, 0};
(_tmpvar_375660.x = int_ctor_uint((uint_ctor_int(_instance_resource_address_115634) % 1024)));
(_tmpvar_375660.y = int_ctor_uint((uint_ctor_int(_instance_resource_address_115634) / 1024)));
float4 _tmpvar_385661 = {0, 0, 0, 0};
float4 _tmpvar_395662 = {0, 0, 0, 0};
(_tmpvar_385661 = gl_texture2DFetch(_sGpuCache, _tmpvar_375660, 0));
(_tmpvar_395662 = gl_texture2DFetch(_sGpuCache, (_tmpvar_375660 + int2(1, 0)), 0));
float2 _tmpvar_405663 = {0, 0};
bool _tmpvar_415664 = {0};
(_tmpvar_415664 = (0 == _tmpvar_295652));
(_tmpvar_415664 = (_tmpvar_415664 || (!(((1 == _tmpvar_295652) || (2 == _tmpvar_295652)) || (3 == _tmpvar_295652)))));
if (_tmpvar_415664)
{
(_tmpvar_405663 = float2(0.5, 0.5));
}
else
{
(_tmpvar_415664 = (_tmpvar_415664 || (1 == _tmpvar_295652)));
if (_tmpvar_415664)
{
(_tmpvar_405663 = float2(0.125, 0.5));
}
else
{
(_tmpvar_415664 = (_tmpvar_415664 || (2 == _tmpvar_295652)));
if (_tmpvar_415664)
{
(_tmpvar_405663 = float2(0.5, 0.125));
}
else
{
(_tmpvar_415664 = (_tmpvar_415664 || (3 == _tmpvar_295652)));
if (_tmpvar_415664)
{
(_tmpvar_405663 = float2(0.125, 0.125));
}
}
}
}
float _tmpvar_425665 = {0};
(_tmpvar_425665 = ((float_ctor_int(_ph_user_data_65629.x) / 65535.0) * _tmpvar_285651.x));
float _tmpvar_435666 = {0};
(_tmpvar_435666 = (_tmpvar_395662.z / _tmpvar_425665));
float2 _tmpvar_445667 = {0, 0};
(_tmpvar_445667 = ((_tmpvar_435666 * (_tmpvar_395662.xy + (floor(((_glyph_offset_15624 * _tmpvar_425665) + _tmpvar_405663)) / _tmpvar_395662.z))) + _tmpvar_135636.zw));
float2 _tmpvar_455668 = {0, 0};
(_tmpvar_455668 = (_tmpvar_445667 + (_tmpvar_435666 * (_tmpvar_385661.zw - _tmpvar_385661.xy))));
float2 _tmpvar_465669 = {0, 0};
(_tmpvar_465669 = min(max(lerp(_tmpvar_445667, _tmpvar_455668, _aPosition), _tmpvar_145637.xy), _tmpvar_145637.zw));
float4 _tmpvar_475670 = {0, 0, 0, 0};
(_tmpvar_475670.zw = float2(0.0, 1.0));
(_tmpvar_475670.xy = _tmpvar_465669);
float4 _tmpvar_485671 = {0, 0, 0, 0};
(_tmpvar_485671 = mul(transpose(_transform_m_175640), _tmpvar_475670));
float4 _tmpvar_495672 = {0, 0, 0, 0};
(_tmpvar_495672.xy = ((_tmpvar_485671.xy * _tmpvar_285651.x) + (((-_tmpvar_285651.yz) + _tmpvar_275650.xy) * _tmpvar_485671.w)));
(_tmpvar_495672.z = (_ph_z_55628 * _tmpvar_485671.w));
(_tmpvar_495672.w = _tmpvar_485671.w);
(gl_Position = mul(transpose(_uTransform), _tmpvar_495672));
float2 _tmpvar_505673 = {0, 0};
(_tmpvar_505673 = ((_tmpvar_465669 - _tmpvar_445667) / (_tmpvar_455668 - _tmpvar_445667)));
float4 _tmpvar_515674 = {0, 0, 0, 0};
(_tmpvar_515674.xy = _clip_area_task_rect_p0_35626);
(_tmpvar_515674.zw = _clip_area_task_rect_p1_45627);
(_vClipMaskUvBounds = _tmpvar_515674);
(_vClipMaskUv = ((_tmpvar_485671.xy * _area_device_pixel_scale_215644) + (_tmpvar_485671.w * (_clip_area_task_rect_p0_35626 - _area_screen_origin_225645))));
bool _tmpvar_525675 = {0};
bool _tmpvar_535676 = {0};
(_tmpvar_535676 = false);
(_tmpvar_525675 = (1 == _color_mode_25625));
if (_tmpvar_525675)
{
(_v_mask_swizzle = float3(0.0, 1.0, 1.0));
(_v_color = _tmpvar_325655);
(_tmpvar_535676 = true);
}
(_tmpvar_525675 = (_tmpvar_525675 || (6 == _color_mode_25625)));
(_tmpvar_525675 = (_tmpvar_525675 && (!_tmpvar_535676)));
if (_tmpvar_525675)
{
(_v_mask_swizzle = float3(0.0, 1.0, 0.0));
(_v_color = _tmpvar_325655);
(_tmpvar_535676 = true);
}
(_tmpvar_525675 = (_tmpvar_525675 || (4 == _color_mode_25625)));
(_tmpvar_525675 = (_tmpvar_525675 && (!_tmpvar_535676)));
if (_tmpvar_525675)
{
(_v_mask_swizzle = float3(1.0, 0.0, 0.0));
(_v_color = _tmpvar_325655);
(_tmpvar_535676 = true);
}
(_tmpvar_525675 = (_tmpvar_525675 || (2 == _color_mode_25625)));
(_tmpvar_525675 = (_tmpvar_525675 || (7 == _color_mode_25625)));
(_tmpvar_525675 = (_tmpvar_525675 && (!_tmpvar_535676)));
if (_tmpvar_525675)
{
(_v_mask_swizzle = float3(1.0, 0.0, 0.0));
(_v_color = _tmpvar_325655.wwww);
(_tmpvar_535676 = true);
}
(_tmpvar_525675 = (_tmpvar_525675 || (3 == _color_mode_25625)));
(_tmpvar_525675 = (_tmpvar_525675 && (!_tmpvar_535676)));
if (_tmpvar_525675)
{
(_v_mask_swizzle = float3(-1.0, 1.0, 0.0));
(_v_color = (_tmpvar_325655.wwww * _tmpvar_335656));
(_tmpvar_535676 = true);
}
(_tmpvar_525675 = (_tmpvar_525675 || (5 == _color_mode_25625)));
(_tmpvar_525675 = (_tmpvar_525675 && (!_tmpvar_535676)));
if (_tmpvar_525675)
{
float3 _tmpvar_545677 = {0, 0, 0};
(_tmpvar_545677.yz = float2(0.0, 0.0));
(_tmpvar_545677.x = _tmpvar_325655.w);
(_v_mask_swizzle = _tmpvar_545677);
(_v_color = _tmpvar_325655);
(_tmpvar_535676 = true);
}
(_tmpvar_525675 = (!_tmpvar_535676));
if (_tmpvar_525675)
{
(_v_mask_swizzle = float3(0.0, 0.0, 0.0));
(_v_color = float4(1.0, 1.0, 1.0, 1.0));
}
float2 _tmpvar_555678 = {0, 0};
(_tmpvar_555678 = vec2_ctor_int2(gl_texture2DSize(_sColor0, 0)));
(_v_uv = lerp((_tmpvar_385661.xy / _tmpvar_555678), (_tmpvar_385661.zw / _tmpvar_555678), _tmpvar_505673));
(_v_uv_bounds = ((_tmpvar_385661 + float4(0.5, 0.5, -0.5, -0.5)) / _tmpvar_555678.xyxy));
return generateOutput(input);
}
struct PS_INPUT
{
    float4 dx_Position : SV_Position;
    float4 gl_Position : TEXCOORD6;
    float4 gl_FragCoord : TEXCOORD7;
    nointerpolation float4 v0 : TEXCOORD0;
    nointerpolation float4 v1 : TEXCOORD1;
    nointerpolation float4 v2 : TEXCOORD2;
    nointerpolation float3 v3 : TEXCOORD3;
    float2 v4 : TEXCOORD4;
    float2 v5 : TEXCOORD5;
};
 
#pragma warning( disable: 3556 3571 )
bool4 bvec4_ctor(bool x0)
{
    return bool4(x0, x0, x0, x0);
}
int2 ivec2_ctor(float2 x0)
{
    return int2(x0);
}
// Uniforms
 
static const uint _sColor0 = 0;
static const uint _sClipMask = 1;
uniform Texture2D<float4> textures2D[2] : register(t0);
uniform SamplerState samplers2D[2] : register(s0);
#ifdef ANGLE_ENABLE_LOOP_FLATTEN
#define LOOP [loop]
#define FLATTEN [flatten]
#else
#define LOOP
#define FLATTEN
#endif
 
#define ATOMIC_COUNTER_ARRAY_STRIDE 4
 
// Varyings
static nointerpolation float4 _vClipMaskUvBounds = {0, 0, 0, 0};
static  float2 _vClipMaskUv = {0, 0};
static nointerpolation float4 _v_color = {0, 0, 0, 0};
static nointerpolation float3 _v_mask_swizzle = {0, 0, 0};
static nointerpolation float4 _v_uv_bounds = {0, 0, 0, 0};
static  float2 _v_uv = {0, 0};
 
static float4 out_oFragColor = {0, 0, 0, 0};
static float4 gl_FragCoord = float4(0, 0, 0, 0);
 
cbuffer DriverConstants : register(b1)
{
    float4 dx_ViewCoords : packoffset(c1);
    float2 dx_FragCoordOffset : packoffset(c3);
    float3 dx_DepthFront : packoffset(c2);
    float2 dx_ViewScale : packoffset(c3.z);
    struct SamplerMetadata
    {
        int baseLevel;
        int internalFormatBits;
        int wrapModes;
        int padding;
        int4 intBorderColor;
    };
    SamplerMetadata samplerMetadata[2] : packoffset(c5);
};
 
float4 gl_texture2D(uint samplerIndex, float2 t)
{
    return textures2D[samplerIndex].Sample(samplers2D[samplerIndex], float2(t.x, t.y));
}
 
float4 gl_texture2DFetch(uint samplerIndex, int2 t, int mip)
{
    return textures2D[samplerIndex].Load(int3(t.x, t.y, mip));
}
 
#define GL_USES_FRAG_COORD
float4 mix_emu(float4 x, float4 y, bool4 a)
{
    return a ? y : x;
}
 
 
@@ PIXEL OUTPUT @@
 
PS_OUTPUT main(PS_INPUT input){
    float rhw = 1.0 / input.gl_FragCoord.w;
    gl_FragCoord.x = input.dx_Position.x - dx_FragCoordOffset.x;
    gl_FragCoord.y = input.dx_Position.y - dx_FragCoordOffset.y;
    gl_FragCoord.z = (input.gl_FragCoord.z * rhw) * dx_DepthFront.x + dx_DepthFront.y;
    gl_FragCoord.w = rhw;
    _vClipMaskUvBounds = input.v0;
    _v_color = input.v1;
    _v_uv_bounds = input.v2;
    _v_mask_swizzle = input.v3.xyz;
    _vClipMaskUv = input.v4.xy;
    _v_uv = input.v5.xy;
 
float4 _frag_color_15615 = {0, 0, 0, 0};
float4 _mask_25616 = {0, 0, 0, 0};
float4 _tmpvar_35617 = {0, 0, 0, 0};
(_tmpvar_35617 = gl_texture2D(_sColor0, min(max(_v_uv, _v_uv_bounds.xy), _v_uv_bounds.zw)));
float4 _tmpvar_45618 = {0, 0, 0, 0};
(_tmpvar_45618 = mix_emu(_tmpvar_35617, _tmpvar_35617.xxxx, bvec4_ctor((_v_mask_swizzle.z != 0.0))));
(_mask_25616.w = _tmpvar_45618.w);
(_mask_25616.xyz = ((_tmpvar_45618.xyz * _v_mask_swizzle.x) + (_tmpvar_45618.www * _v_mask_swizzle.y)));
(_frag_color_15615 = (_v_color * _mask_25616));
float _tmpvar_55619 = {0};
if (all(_vClipMaskUvBounds.xy == _vClipMaskUvBounds.zw))
{
(_tmpvar_55619 = 1.0);
}
else
{
float2 _tmpvar_65620 = {0, 0};
(_tmpvar_65620 = (_vClipMaskUv * gl_FragCoord.w));
bool4 _tmpvar_75621 = {0, 0, 0, 0};
(_tmpvar_75621.xy = (_tmpvar_65620 >= _vClipMaskUvBounds.xy));
(_tmpvar_75621.zw = (_tmpvar_65620 < _vClipMaskUvBounds.zw));
bool _tmpvar_85622 = {0};
(_tmpvar_85622 = all(_tmpvar_75621 == bool4(true, true, true, true)));
if ((!_tmpvar_85622))
{
(_tmpvar_55619 = 0.0);
}
else
{
(_tmpvar_55619 = gl_texture2DFetch(_sClipMask, ivec2_ctor(_tmpvar_65620), 0).x);
}
}
(_frag_color_15615 = (_frag_color_15615 * _tmpvar_55619));
(out_oFragColor = _frag_color_15615);
return generateOutput();
}
R‹out_oFragColorout_oFragColoržstruct GS_INPUT
{
    float4 dx_Position : SV_Position;
    float4 gl_Position : TEXCOORD6;
    float4 gl_FragCoord : TEXCOORD7;
    nointerpolation float4 v0 : TEXCOORD0;
    nointerpolation float4 v1 : TEXCOORD1;
    nointerpolation float4 v2 : TEXCOORD2;
    nointerpolation float3 v3 : TEXCOORD3;
    float2 v4 : TEXCOORD4;
    float2 v5 : TEXCOORD5;
};
 
struct GS_OUTPUT
{
    float4 dx_Position : SV_Position;
    float4 gl_Position : TEXCOORD6;
    float4 gl_FragCoord : TEXCOORD7;
    nointerpolation float4 v0 : TEXCOORD0;
    nointerpolation float4 v1 : TEXCOORD1;
    nointerpolation float4 v2 : TEXCOORD2;
    nointerpolation float3 v3 : TEXCOORD3;
    float2 v4 : TEXCOORD4;
    float2 v5 : TEXCOORD5;
};
 
void copyVertex(inout GS_OUTPUT output, GS_INPUT input, GS_INPUT flatinput)
{
    output.gl_Position = input.gl_Position;
    output.v0 = flatinput.v0; 
    output.v1 = flatinput.v1; 
    output.v2 = flatinput.v2; 
    output.v3 = flatinput.v3; 
    output.v4 = input.v4; 
    output.v5 = input.v5; 
    output.gl_FragCoord = input.gl_FragCoord;
#ifndef ANGLE_POINT_SPRITE_SHADER
    output.dx_Position = input.dx_Position;
#endif  // ANGLE_POINT_SPRITE_SHADER
}
¶§,DXBC÷cbF_»ÿ        ŽBå,4Ø$$RDEFœ°<þÿÁtRD11< ($ <ÿÿÿÿ Jÿÿÿÿ Xÿÿÿÿ fÿÿÿÿ tÿÿÿÿ ‚ÿÿÿÿ –Ÿtextures2D[0]textures2D[1]textures2D[2]textures2D[3]textures2D[4]textures2D_int4_[0]$GlobalsDriverConstants«–àPŸœ0<ÿÿÿÿÿÿÿÿ`@xÿÿÿÿÿÿÿÿ_uModeint«7_uTransformfloat4x4«««lŒ¤ÿÿÿÿÿÿÿÿÈ àÿÿÿÿÿÿÿÿ0àÿÿÿÿÿÿÿÿ<,ÿÿÿÿÿÿÿÿP@,ÿÿÿÿÿÿÿÿePÀPÿÿÿÿÿÿÿÿdx_ViewAdjustfloat4«««šdx_ViewCoordsfloat2«««Ödx_ViewScaleclipControlOriginfloat«««#clipControlZeroToOnesamplerMetadataSamplerMetadatabaseLevel«7internalFormatBitswrapModespaddingintBorderColorint4«««è…´ÇÑ ÙðuMicrosoft (R) HLSL Shader Compiler 10.1ISGND88TEXCOORD«««OSGNø    àììììììì ì SV_PositionTEXCOORD«««SHEXdPYjYFŽ YFŽ XpUUXpUUXpUUXpUUXpUUXp33_2_ògò eò eò eò eò eò er e2 e h
r–@ÿÿÿ*
2–@Œ @    @
@U"
@    6Â@-‰Â€CUòFF~
2F@6Â@-‰Â€CUòFF~-‰Â€ÃÌ rFF~+‚
-‰Â€ÃÌ BF–|Œ @@*@Š    "@@*6Â@-‰Â€CUÒF†}
2F@6Â@-‰Â€CUrFF{
2F@6Â@-‰Â€CUrFF{!
@ÿ
6ò@6r@Œ     @    @@Š    "    @@    6    @-‰Â€CUòF    F~
2    F    @6    @-‰Â€CUrF    –|Œ     @    @
@U"    
@    6    @-‰Â€CU’F    †w
2    F    @6    @-‰Â€CUr    F    F~*@
@ÿ"@ÿ
@ÿU"
@
6Â
@-‰Â€CUò F
6y
2
F
@6Â
@-‰Â€CUò
F
F~7
"
€ "@Š2 @@
æ"
  @ÿU" @
6 @-‰Â€CUò F F~ "@7    2 Væ
 F 2FF 6B *6‚ @-‰Â€CUò f F~
2 f
 @6 @-‰Â€CUr F F~ 
ò@<*<:
;
<
 
<"
<B*<":*"@>7 2¦
@?>V7 bV@>?7 2@??–+B*8B
    *8B*@€€7B* *2    2F¦
FA2F2F¦
 2FF 2    2¦
Fæ
2F€A æ
 82¦
F2    Â4¦3¦¦8röF2    r†¦
FrFFRV€A    8R¦
2    2F    †8B:*6‚*FŽ F"FŽ FBFŽ F‚FŽ F2F€Aæ
2FF€A8¦¦
2    2 F¦
æ
 
òV@
r@€?€?<B
;‚
B:*6‚
7 ò¦
@€?ÿÿÿÿF<¦
;:‚:
<B:*ò– ¦
<B::<:: 
âV@<
;B*B*
7    ò¦
 F<‚*:7 òö@€?ÿÿÿÿF<B**;‚:B:*8òF
 7    ò¦
FF7 ò¦
@€¿€?ÿÿÿÿF<B:*;‚:B:*7    ò¦
– F6¢ @ÿÿÿÿ7    ò¦
F  F7 ò öF@€?€?€?€?r Fö=‰Â€CUÂ@ætS
òæ@+òFòF æÂ€A¦2    Â ¦
òF @??¿¿ò FF8" :€ 9 @
€ ":*8"@?7    B 
*6’  6ò F6ò F6ò F>STAT”¥ '(àŒxDXBCqÔ²=˜ÜI[<Ñx4,,`ÜRDEFð<ÿÿÁÆRD11< ($ œªÿÿÿÿ ¸ÿÿÿÿ samplers2D[0]textures2D[0]textures2D[1]Microsoft (R) HLSL Shader Compiler 10.1««ISGNø    àìììììììì SV_PositionTEXCOORD«««OSGN, SV_TARGET««SHEXtPÝjZ`XpUUXpUUb‚bòbòbòbrb2bÂeò h42Fæ32FæE‹Â€CUòFF~`9*@7    òF8òFröF8òFF2æF
 
6@€?
"@€?€?€?€?:8bV2–F1ÂV    ¦ 
òF@ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ2æ
F‚
:6@2–6Â@-‰Â€CUFF~8ò F>STAT” ¦“­g«Ù¨Á“ñ