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
2­T±íÐJ‘ÁØÃq6784271c1c62P‹ò    aPosition _uaPositionÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿU‹õaData_uaDataÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ\‹ò
uTransform _uuTransformÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ^‹sColor0    _usColor0ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ^‹sTransformPalette_usTransformPaletteÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ^‹ sRenderTasks_usRenderTasksÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ^‹
sGpuBuffer _usGpuBufferÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿŒŒR‹ò
oFragColor _uoFragColorÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ^‹^‹^‹^‹ÿÿÿÿL-hÁ±ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ<<ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿµ4struct VS_OUTPUT
{
    float4 dx_Position : SV_Position;
    float4 gl_Position : TEXCOORD6;
    nointerpolation float4 v0 : TEXCOORD0;
    nointerpolation float4 v1 : TEXCOORD1;
    nointerpolation float4 v2 : TEXCOORD2;
    nointerpolation int4 v3 : TEXCOORD3;
    float2 v4 : TEXCOORD4;
    float2 v5 : TEXCOORD5;
};
#pragma warning( disable: 3556 3571 )
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 float4x4 _uTransform : register(c0);
static const uint _sColor0 = 0;
static const uint _sTransformPalette = 1;
static const uint _sRenderTasks = 2;
static const uint _sGpuBuffer = 3;
uniform Texture2D<float4> textures2D[4] : register(t0);
uniform SamplerState samplers2D[4] : 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
 
// 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 _vTransformBounds = {0, 0, 0, 0};
static nointerpolation float4 _v_color = {0, 0, 0, 0};
static nointerpolation float4 _v_uv_sample_bounds = {0, 0, 0, 0};
static nointerpolation int4 _v_flags = {0, 0, 0, 0};
static  float2 _v_uv = {0, 0};
static  float2 _vLocalPos = {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[4] : 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));
}
 
@@ 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.v0 = _vTransformBounds;
    output.v1 = _v_color;
    output.v2 = _v_uv_sample_bounds;
    output.v3 = _v_flags;
    output.v4 = _v_uv;
    output.v5 = _vLocalPos;
 
    return output;
}
 
VS_OUTPUT main(VS_INPUT input){
    initAttributes(input);
 
float _device_pixel_scale_15619 = {0};
float2 _local_coverage_rect_p0_25620 = {0, 0};
float2 _local_coverage_rect_p1_35621 = {0, 0};
float2 _seg_rect_p0_45622 = {0, 0};
float2 _seg_rect_p1_55623 = {0, 0};
float4 _seg_uv_rect_65624 = {0, 0, 0, 0};
int _tmpvar_75625 = {0};
int _tmpvar_85626 = {0};
int _tmpvar_95627 = {0};
int _tmpvar_105628 = {0};
int _tmpvar_115629 = {0};
(_tmpvar_75625 = ((_aData.y >> 24) & 255));
(_tmpvar_85626 = ((_aData.y >> 16) & 255));
(_tmpvar_95627 = (_aData.y & 65535));
(_tmpvar_105628 = ((_aData.z >> 24) & 255));
(_tmpvar_115629 = ((_aData.w >> 24) & 255));
float4x4 _transform_m_125630 = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
float4x4 _transform_inv_m_135631 = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
int _tmpvar_145632 = {0};
(_tmpvar_145632 = ((_aData.w & 16777215) & 8388607));
int2 _tmpvar_155633 = {0, 0};
(_tmpvar_155633.x = int_ctor_uint((8 * (uint_ctor_int(_tmpvar_145632) % 128))));
(_tmpvar_155633.y = int_ctor_uint((uint_ctor_int(_tmpvar_145632) / 128)));
(_transform_m_125630[0] = gl_texture2DFetch(_sTransformPalette, _tmpvar_155633, 0));
(_transform_m_125630[1] = gl_texture2DFetch(_sTransformPalette, (_tmpvar_155633 + int2(1, 0)), 0));
(_transform_m_125630[2] = gl_texture2DFetch(_sTransformPalette, (_tmpvar_155633 + int2(2, 0)), 0));
(_transform_m_125630[3] = gl_texture2DFetch(_sTransformPalette, (_tmpvar_155633 + int2(3, 0)), 0));
(_transform_inv_m_135631[0] = gl_texture2DFetch(_sTransformPalette, (_tmpvar_155633 + int2(4, 0)), 0));
(_transform_inv_m_135631[1] = gl_texture2DFetch(_sTransformPalette, (_tmpvar_155633 + int2(5, 0)), 0));
(_transform_inv_m_135631[2] = gl_texture2DFetch(_sTransformPalette, (_tmpvar_155633 + int2(6, 0)), 0));
(_transform_inv_m_135631[3] = gl_texture2DFetch(_sTransformPalette, (_tmpvar_155633 + int2(7, 0)), 0));
int2 _tmpvar_165634 = {0, 0};
(_tmpvar_165634.x = int_ctor_uint((2 * (uint_ctor_int(_tmpvar_95627) % 512))));
(_tmpvar_165634.y = int_ctor_uint((uint_ctor_int(_tmpvar_95627) / 512)));
float4 _tmpvar_175635 = {0, 0, 0, 0};
(_tmpvar_175635 = gl_texture2DFetch(_sRenderTasks, _tmpvar_165634, 0));
float4 _tmpvar_185636 = {0, 0, 0, 0};
(_tmpvar_185636 = gl_texture2DFetch(_sRenderTasks, (_tmpvar_165634 + int2(1, 0)), 0));
float _tmpvar_195637 = {0};
(_tmpvar_195637 = _tmpvar_185636.x);
int2 _tmpvar_205638 = {0, 0};
(_tmpvar_205638.x = int_ctor_uint((uint_ctor_int(_aData.x) % 1024)));
(_tmpvar_205638.y = int_ctor_uint((uint_ctor_int(_aData.x) / 1024)));
float4 _tmpvar_215639 = {0, 0, 0, 0};
float4 _tmpvar_225640 = {0, 0, 0, 0};
float4 _tmpvar_235641 = {0, 0, 0, 0};
(_tmpvar_215639 = gl_texture2DFetch(_sGpuBuffer, _tmpvar_205638, 0));
(_tmpvar_225640 = gl_texture2DFetch(_sGpuBuffer, (_tmpvar_205638 + int2(1, 0)), 0));
(_tmpvar_235641 = gl_texture2DFetch(_sGpuBuffer, (_tmpvar_205638 + int2(2, 0)), 0));
float2 _tmpvar_245642 = {0, 0};
float2 _tmpvar_255643 = {0, 0};
(_tmpvar_245642 = _tmpvar_215639.xy);
(_tmpvar_255643 = _tmpvar_215639.zw);
float _tmpvar_265644 = {0};
(_tmpvar_265644 = float_ctor_int((_aData.z & 16777215)));
if ((_tmpvar_115629 == 255))
{
(_seg_rect_p0_45622 = _tmpvar_245642);
(_seg_rect_p1_55623 = _tmpvar_255643);
(_seg_uv_rect_65624 = float4(0.0, 0.0, 0.0, 0.0));
}
else
{
int _tmpvar_275645 = {0};
(_tmpvar_275645 = ((_aData.x + 3) + (_tmpvar_115629 * 2)));
int2 _tmpvar_285646 = {0, 0};
(_tmpvar_285646.x = int_ctor_uint((uint_ctor_int(_tmpvar_275645) % 1024)));
(_tmpvar_285646.y = int_ctor_uint((uint_ctor_int(_tmpvar_275645) / 1024)));
float4 _tmpvar_295647 = {0, 0, 0, 0};
(_tmpvar_295647 = gl_texture2DFetch(_sGpuBuffer, _tmpvar_285646, 0));
(_seg_rect_p0_45622 = _tmpvar_295647.xy);
(_seg_rect_p1_55623 = _tmpvar_295647.zw);
(_seg_uv_rect_65624 = gl_texture2DFetch(_sGpuBuffer, (_tmpvar_285646 + int2(1, 0)), 0));
}
float2 _tmpvar_305648 = {0, 0};
(_tmpvar_305648 = max(_seg_rect_p0_45622, _tmpvar_225640.xy));
(_local_coverage_rect_p0_25620 = _tmpvar_305648);
float2 _tmpvar_315649 = {0, 0};
(_tmpvar_315649 = max(_tmpvar_305648, min(_seg_rect_p1_55623, _tmpvar_225640.zw)));
(_local_coverage_rect_p1_35621 = _tmpvar_315649);
bool _tmpvar_325650 = {0};
bool _tmpvar_335651 = {0};
(_tmpvar_335651 = false);
(_tmpvar_325650 = (1 == _tmpvar_105628));
if (_tmpvar_325650)
{
(_local_coverage_rect_p1_35621.x = (_tmpvar_305648.x + 2.0));
(_local_coverage_rect_p0_25620 = (_tmpvar_305648 - float2(2.0, 2.0)));
(_local_coverage_rect_p1_35621.y = (_tmpvar_315649.y + 2.0));
(_tmpvar_335651 = true);
}
(_tmpvar_325650 = (_tmpvar_325650 || (2 == _tmpvar_105628)));
(_tmpvar_325650 = (_tmpvar_325650 && (!_tmpvar_335651)));
if (_tmpvar_325650)
{
(_local_coverage_rect_p0_25620.x = (_local_coverage_rect_p0_25620.x + 2.0));
(_local_coverage_rect_p1_35621.x = (_local_coverage_rect_p1_35621.x - 2.0));
(_local_coverage_rect_p1_35621.y = (_local_coverage_rect_p0_25620.y + 2.0));
(_local_coverage_rect_p0_25620.y = (_local_coverage_rect_p0_25620.y - 2.0));
(_tmpvar_335651 = true);
}
(_tmpvar_325650 = (_tmpvar_325650 || (3 == _tmpvar_105628)));
(_tmpvar_325650 = (_tmpvar_325650 && (!_tmpvar_335651)));
if (_tmpvar_325650)
{
(_local_coverage_rect_p0_25620.x = (_local_coverage_rect_p1_35621.x - 2.0));
(_local_coverage_rect_p1_35621.x = (_local_coverage_rect_p1_35621.x + 2.0));
(_local_coverage_rect_p0_25620.y = (_local_coverage_rect_p0_25620.y - 2.0));
(_local_coverage_rect_p1_35621.y = (_local_coverage_rect_p1_35621.y + 2.0));
(_tmpvar_335651 = true);
}
(_tmpvar_325650 = (_tmpvar_325650 || (4 == _tmpvar_105628)));
(_tmpvar_325650 = (_tmpvar_325650 && (!_tmpvar_335651)));
if (_tmpvar_325650)
{
(_local_coverage_rect_p0_25620.x = (_local_coverage_rect_p0_25620.x + 2.0));
(_local_coverage_rect_p1_35621.x = (_local_coverage_rect_p1_35621.x - 2.0));
(_local_coverage_rect_p0_25620.y = (_local_coverage_rect_p1_35621.y - 2.0));
(_local_coverage_rect_p1_35621.y = (_local_coverage_rect_p1_35621.y + 2.0));
(_tmpvar_335651 = true);
}
(_tmpvar_325650 = (_tmpvar_325650 || (0 == _tmpvar_105628)));
(_tmpvar_325650 = (_tmpvar_325650 && (!_tmpvar_335651)));
if (_tmpvar_325650)
{
float _tmpvar_345652 = {0};
if (((_tmpvar_85626 & 1) != 0))
{
(_tmpvar_345652 = 2.0);
}
else
{
(_tmpvar_345652 = 0.0);
}
(_local_coverage_rect_p0_25620.x = (_local_coverage_rect_p0_25620.x + _tmpvar_345652));
float _tmpvar_355653 = {0};
if (((_tmpvar_85626 & 4) != 0))
{
(_tmpvar_355653 = 2.0);
}
else
{
(_tmpvar_355653 = 0.0);
}
(_local_coverage_rect_p1_35621.x = (_local_coverage_rect_p1_35621.x - _tmpvar_355653));
float _tmpvar_365654 = {0};
if (((_tmpvar_85626 & 2) != 0))
{
(_tmpvar_365654 = 2.0);
}
else
{
(_tmpvar_365654 = 0.0);
}
(_local_coverage_rect_p0_25620.y = (_local_coverage_rect_p0_25620.y + _tmpvar_365654));
float _tmpvar_375655 = {0};
if (((_tmpvar_85626 & 8) != 0))
{
(_tmpvar_375655 = 2.0);
}
else
{
(_tmpvar_375655 = 0.0);
}
(_local_coverage_rect_p1_35621.y = (_local_coverage_rect_p1_35621.y - _tmpvar_375655));
(_tmpvar_335651 = true);
}
(_tmpvar_325650 = (!_tmpvar_335651));
if (_tmpvar_325650)
{
float _tmpvar_385656 = {0};
if (((_tmpvar_85626 & 1) != 0))
{
(_tmpvar_385656 = 2.0);
}
else
{
(_tmpvar_385656 = 0.0);
}
(_local_coverage_rect_p0_25620.x = (_local_coverage_rect_p0_25620.x - _tmpvar_385656));
float _tmpvar_395657 = {0};
if (((_tmpvar_85626 & 4) != 0))
{
(_tmpvar_395657 = 2.0);
}
else
{
(_tmpvar_395657 = 0.0);
}
(_local_coverage_rect_p1_35621.x = (_local_coverage_rect_p1_35621.x + _tmpvar_395657));
float _tmpvar_405658 = {0};
if (((_tmpvar_85626 & 2) != 0))
{
(_tmpvar_405658 = 2.0);
}
else
{
(_tmpvar_405658 = 0.0);
}
(_local_coverage_rect_p0_25620.y = (_local_coverage_rect_p0_25620.y - _tmpvar_405658));
float _tmpvar_415659 = {0};
if (((_tmpvar_85626 & 8) != 0))
{
(_tmpvar_415659 = 2.0);
}
else
{
(_tmpvar_415659 = 0.0);
}
(_local_coverage_rect_p1_35621.y = (_local_coverage_rect_p1_35621.y + _tmpvar_415659));
(_tmpvar_335651 = true);
}
float2 _tmpvar_425660 = {0, 0};
(_tmpvar_425660 = lerp(_local_coverage_rect_p0_25620, _local_coverage_rect_p1_35621, _aPosition));
(_device_pixel_scale_15619 = _tmpvar_195637);
if (((_tmpvar_75625 & 4) != 0))
{
(_device_pixel_scale_15619 = 1.0);
}
float2 _device_pos_435661 = {0, 0};
float2 _vi_local_pos_445662 = {0, 0};
float4 _tmpvar_455663 = {0, 0, 0, 0};
(_tmpvar_455663.zw = float2(0.0, 1.0));
(_tmpvar_455663.xy = _tmpvar_425660);
float4 _tmpvar_465664 = {0, 0, 0, 0};
(_tmpvar_465664 = mul(transpose(_transform_m_125630), _tmpvar_455663));
float2 _tmpvar_475665 = {0, 0};
(_tmpvar_475665 = (_tmpvar_465664.xy * _device_pixel_scale_15619));
(_device_pos_435661 = _tmpvar_475665);
if (((_tmpvar_75625 & 2) != 0))
{
float2 _tmpvar_485666 = {0, 0};
(_tmpvar_485666 = min(max(_tmpvar_475665, _tmpvar_185636.yz), ((_tmpvar_185636.yz + _tmpvar_175635.zw) - _tmpvar_175635.xy)));
(_device_pos_435661 = _tmpvar_485666);
float4 _tmpvar_495667 = {0, 0, 0, 0};
(_tmpvar_495667.zw = float2(0.0, 1.0));
(_tmpvar_495667.xy = (_tmpvar_485666 / _device_pixel_scale_15619));
(_vi_local_pos_445662 = mul(transpose(_transform_inv_m_135631), _tmpvar_495667).xy);
}
else
{
(_vi_local_pos_445662 = _tmpvar_425660);
}
float4 _tmpvar_505668 = {0, 0, 0, 0};
(_tmpvar_505668.xy = (_device_pos_435661 + (((-_tmpvar_185636.yz) + _tmpvar_175635.xy) * _tmpvar_465664.w)));
(_tmpvar_505668.z = (_tmpvar_265644 * _tmpvar_465664.w));
(_tmpvar_505668.w = _tmpvar_465664.w);
(gl_Position = mul(transpose(_uTransform), _tmpvar_505668));
if (all(_seg_uv_rect_65624.xy == _seg_uv_rect_65624.zw))
{
(_v_color = _tmpvar_235641);
(_v_flags.y = 0);
}
else
{
(_v_color = float4(1.0, 1.0, 1.0, 1.0));
(_v_flags.y = 1);
float2 _tmpvar_515669 = {0, 0};
(_tmpvar_515669 = vec2_ctor_int2(gl_texture2DSize(_sColor0, 0)));
(_v_uv = (lerp(_seg_uv_rect_65624.xy, _seg_uv_rect_65624.zw, ((_vi_local_pos_445662 - _seg_rect_p0_45622) / (_seg_rect_p1_55623 - _seg_rect_p0_45622))) / _tmpvar_515669));
float4 _tmpvar_525670 = {0, 0, 0, 0};
(_tmpvar_525670.xy = (_seg_uv_rect_65624.xy + float2(0.5, 0.5)));
(_tmpvar_525670.zw = (_seg_uv_rect_65624.zw - float2(0.5, 0.5)));
(_v_uv_sample_bounds = (_tmpvar_525670 / _tmpvar_515669.xyxy));
}
float4 _tmpvar_535671 = {0, 0, 0, 0};
(_tmpvar_535671.xy = max(_tmpvar_215639.xy, _tmpvar_225640.xy));
(_tmpvar_535671.zw = min(_tmpvar_215639.zw, _tmpvar_225640.zw));
(_vTransformBounds = _tmpvar_535671);
(_vLocalPos = _vi_local_pos_445662);
if ((_tmpvar_85626 == 0))
{
(_v_flags.x = 0);
}
else
{
(_v_flags.x = 1);
}
return generateOutput(input);
}
Êstruct PS_INPUT
{
    float4 dx_Position : SV_Position;
    float4 gl_Position : TEXCOORD6;
    nointerpolation float4 v0 : TEXCOORD0;
    nointerpolation float4 v1 : TEXCOORD1;
    nointerpolation float4 v2 : TEXCOORD2;
    nointerpolation int4 v3 : TEXCOORD3;
    float2 v4 : TEXCOORD4;
    float2 v5 : TEXCOORD5;
};
 
#pragma warning( disable: 3556 3571 )
// Uniforms
 
static const uint _sColor0 = 0;
uniform Texture2D<float4> textures2D[1] : register(t0);
uniform SamplerState samplers2D[1] : 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 _vTransformBounds = {0, 0, 0, 0};
static nointerpolation float4 _v_color = {0, 0, 0, 0};
static nointerpolation float4 _v_uv_sample_bounds = {0, 0, 0, 0};
static nointerpolation int4 _v_flags = {0, 0, 0, 0};
static  float2 _v_uv = {0, 0};
static  float2 _vLocalPos = {0, 0};
 
static float4 out_oFragColor = {0, 0, 0, 0};
 
cbuffer DriverConstants : register(b1)
{
    struct SamplerMetadata
    {
        int baseLevel;
        int internalFormatBits;
        int wrapModes;
        int padding;
        int4 intBorderColor;
    };
    SamplerMetadata samplerMetadata[1] : packoffset(c5);
};
 
float4 gl_texture2D(uint samplerIndex, float2 t)
{
    return textures2D[samplerIndex].Sample(samplers2D[samplerIndex], float2(t.x, t.y));
}
 
@@ PIXEL OUTPUT @@
 
PS_OUTPUT main(PS_INPUT input){
    _vTransformBounds = input.v0;
    _v_color = input.v1;
    _v_uv_sample_bounds = input.v2;
    _v_flags = input.v3;
    _v_uv = input.v4.xy;
    _vLocalPos = input.v5.xy;
 
float4 _color_15614 = {0, 0, 0, 0};
(_color_15614 = _v_color);
if ((_v_flags.x != 0))
{
float2 _tmpvar_25615 = {0, 0};
(_tmpvar_25615 = (max((_vTransformBounds.xy - _vLocalPos), (_vLocalPos - _vTransformBounds.zw)) / (abs(ddx(_vLocalPos)) + abs(ddy(_vLocalPos)))));
(_color_15614 = (_v_color * min(max((0.5 - max(_tmpvar_25615.x, _tmpvar_25615.y)), 0.0), 1.0)));
}
if ((_v_flags.y != 0))
{
(_color_15614 = (_color_15614 * gl_texture2D(_sColor0, min(max(_v_uv, _v_uv_sample_bounds.xy), _v_uv_sample_bounds.zw))));
}
(out_oFragColor = _color_15614);
return generateOutput();
}
R‹out_oFragColorout_oFragColor"struct GS_INPUT
{
    float4 dx_Position : SV_Position;
    float4 gl_Position : TEXCOORD6;
    nointerpolation float4 v0 : TEXCOORD0;
    nointerpolation float4 v1 : TEXCOORD1;
    nointerpolation float4 v2 : TEXCOORD2;
    nointerpolation int4 v3 : TEXCOORD3;
    float2 v4 : TEXCOORD4;
    float2 v5 : TEXCOORD5;
};
 
struct GS_OUTPUT
{
    float4 dx_Position : SV_Position;
    float4 gl_Position : TEXCOORD6;
    nointerpolation float4 v0 : TEXCOORD0;
    nointerpolation float4 v1 : TEXCOORD1;
    nointerpolation float4 v2 : TEXCOORD2;
    nointerpolation int4 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; 
#ifndef ANGLE_POINT_SPRITE_SHADER
    output.dx_Position = input.dx_Position;
#endif  // ANGLE_POINT_SPRITE_SHADER
}
¶§\DXBCŒ¥~%lþ:Y³1¼–k¡[\4$pXÀRDEFèP<þÿÁÀRD11< ($ üÿÿÿÿ
ÿÿÿÿ ÿÿÿÿ &ÿÿÿÿ 4=textures2D[0]textures2D[1]textures2D[2]textures2D[3]$GlobalsDriverConstants«««4€@=äШ@Àÿÿÿÿÿÿÿÿ_uTransformfloat4x4«««´Ôìÿÿÿÿÿÿÿÿ (ÿÿÿÿÿÿÿÿL0(ÿÿÿÿÿÿÿÿY<tÿÿÿÿÿÿÿÿ˜@tÿÿÿÿÿÿÿÿ­P€œÿÿÿÿÿÿÿÿdx_ViewAdjustfloat4«««âdx_ViewCoordsfloat2«««dx_ViewScaleclipControlOriginfloat«««kclipControlZeroToOnesamplerMetadataSamplerMetadatabaseLevelint«×internalFormatBitswrapModespaddingintBorderColorint4«««4ÍÜÜÜÜ %<`½Microsoft (R) HLSL Shader Compiler 10.1ISGND88TEXCOORD«««OSGNàÈÔÔÔÔÔÔ Ô SV_PositionTEXCOORD«««SHEX`PØjYFŽ YFŽ XpUUXpUUXpUUXpUU_2_ògò eò eò eò eò eò e2 e h*
òV@
òæ@ÿÿÿŒ2@    @v@Š2@@    v6B
6‚@-‰Â€CUr†F{
2†@6Â@-‰Â€CUrFF{
2†@6Â@-‰Â€CUrFF{
2†@6Â@-‰Â€CU2FF~
2†@6Â@-‰Â€CUÂFæt
2†@6Â@-‰Â€CURF†}6ÂV -‰Â€CUòfF~
2f
@6Â@-‰Â€CUrFF~
2    †@ÿÿÿÿUB    
@
6‚    @-‰Â€CUò
†    F~
2 †    @6 @-‰Â€CUò F F~+B     
ò @ÿ
 6ò F
6ò@"
@Œ ‚@@:@‚::@ÿU":@
6Â@-‰Â€CUò FF~
2F@6Â@-‰Â€CUòFF~42F F 3¢¦ ¦ 4ÂV 
òF @ÀÀ@@7    òV FF<‚*  ;" ‚:
òF@@ÀÀ@7    òöFF<¢V  ö;‚‚::
ò f@ÀÀ@@7    ò öF F<": 
¢@<‚:;‚:
 
òÆ @@ÀÀ@7    ò öFF <:<‚::;"
‚:7âö@@À@€
 
òV@7ò    @@À@@@€bV ¦    7¢¦@ÀÀ@€€‚: 7    ò öFF <"
::
 ": Â ¦ 7    ò VF F¢€A ¦ 2    Â V  7    ":@€?
8rFö 2    rF¦
 F²FF82 VF
@4¢V     ’¦V    ’€A 32ÖÆ¢V8¢ö¦2    ¢VV ÂV 7    òFF 2F–€A2    2FöF8B*:FŽ F"FŽ FBFŽ F‚FŽ F2æ
F
 
 
2†    @6Â@-‰Â€CUò FF~6ò @62@6"@=‰Â€CU2@F~S
òF@+òF2F€A æ
€A ¦ 2Fæ
€A¦2    2Fæ
F2FF
òF@??¿¿ò FF6ò @€?€?€?€?6"@42 F
F 3 ¦
¦ 8" :€ 9 @
€ :*8
@?7    B 
*
6’  6ò F6‚@6ò f6ò F>STAT”—
0  àŒ,DXBCär,Û°D]xd;ÙÓ,4üäRDEFÀ<ÿÿÁ˜RD11< ($ |Šÿÿÿÿ samplers2D[0]textures2D[0]Microsoft (R) HLSL Shader Compiler 10.1ISGNàÈÔÔÔÔÔÔÔ SV_PositionTEXCOORD«««OSGN, SV_TARGET««SHEXpPœjZ`XpUUbòbòbòb2b2bÂeò h2Fæ€A¦€A¦42æ
Fz¦|2æ    Â¦€€2Fæ
4
 
€A@?8òF7    òFF42FF32FæE‹Â€CUòFF~`8ò FF6ò F>STAT” ¦“ƒäÕ“eU