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
2­T±@qú”äÍkA×16784271c1c627777    P‹ò    aPosition _uaPositionÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿR‹ò
aLocalRect _uaLocalRectÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿR‹òaDeviceClipRect_uaDeviceClipRectÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿR‹òaParams    _uaParamsÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿR‹ò
aTransform _uaTransformÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿR‹òaUvRect0
_uaUvRect0ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ\‹ò
uTransform _uuTransformÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ^‹sColor0    _usColor0ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿŒŒR‹ò
oFragColor _uoFragColorÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ^‹ÿÿÿÿL-hÁ±ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ<<ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ‚struct VS_OUTPUT
{
    float4 dx_Position : SV_Position;
    float4 gl_Position : TEXCOORD1;
    float2 v0 : TEXCOORD0;
};
#pragma warning( disable: 3556 3571 )
float2 vec2_ctor_int2(int2 x0)
{
    return float2(x0);
}
int int_ctor(float x0)
{
    return int(x0);
}
// Uniforms
 
uniform float4x4 _uTransform : register(c0);
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
 
// Attributes
static float2 _aPosition = {0, 0};
static float4 _aLocalRect = {0, 0, 0, 0};
static float4 _aDeviceClipRect = {0, 0, 0, 0};
static float4 _aParams = {0, 0, 0, 0};
static float4 _aTransform = {0, 0, 0, 0};
static float4 _aUvRect0 = {0, 0, 0, 0};
 
static float4 gl_Position = float4(0, 0, 0, 0);
 
// Varyings
static  float2 _vUv = {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[1] : 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);
}
 
@@ 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 = _vUv;
 
    return output;
}
 
VS_OUTPUT main(VS_INPUT input){
    initAttributes(input);
 
float4 _uvBounds_15615 = {0, 0, 0, 0};
float2 _uv_25616 = {0, 0};
float2 _tmpvar_35617 = {0, 0};
(_tmpvar_35617 = ((_aLocalRect.xy * _aTransform.xy) + _aTransform.zw));
float2 _tmpvar_45618 = {0, 0};
(_tmpvar_45618 = ((_aLocalRect.zw * _aTransform.xy) + _aTransform.zw));
float2 _tmpvar_55619 = {0, 0};
(_tmpvar_55619 = min(max(lerp(_tmpvar_35617, _tmpvar_45618, _aPosition), _aDeviceClipRect.xy), _aDeviceClipRect.zw));
float2 _tmpvar_65620 = {0, 0};
(_tmpvar_65620 = lerp(_aUvRect0.xy, _aUvRect0.zw, ((_tmpvar_55619 - _tmpvar_35617) / (_tmpvar_45618 - _tmpvar_35617))));
(_uv_25616 = _tmpvar_65620);
float4 _tmpvar_75621 = {0, 0, 0, 0};
(_tmpvar_75621.xy = min(_aUvRect0.xy, _aUvRect0.zw));
(_tmpvar_75621.zw = max(_aUvRect0.xy, _aUvRect0.zw));
(_uvBounds_15615 = _tmpvar_75621);
int _tmpvar_85622 = {0};
(_tmpvar_85622 = int_ctor(_aParams.y));
if ((_tmpvar_85622 == 1))
{
float2 _tmpvar_95623 = {0, 0};
(_tmpvar_95623 = vec2_ctor_int2(gl_texture2DSize(_sColor0, 0)));
(_uvBounds_15615 = (_tmpvar_75621 + float4(0.5, 0.5, -0.5, -0.5)));
(_uv_25616 = (_tmpvar_65620 / _tmpvar_95623));
(_uvBounds_15615 = (_uvBounds_15615 / _tmpvar_95623.xyxy));
}
(_vUv = _uv_25616);
float4 _tmpvar_105624 = {0, 0, 0, 0};
(_tmpvar_105624.zw = float2(0.0, 1.0));
(_tmpvar_105624.xy = _tmpvar_55619);
(gl_Position = mul(transpose(_uTransform), _tmpvar_105624));
return generateOutput(input);
}
hstruct PS_INPUT
{
    float4 dx_Position : SV_Position;
    float4 gl_Position : TEXCOORD1;
    float2 v0 : TEXCOORD0;
};
 
#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  float2 _vUv = {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){
    _vUv = input.v0.xy;
 
(out_oFragColor = gl_texture2D(_sColor0, _vUv));
return generateOutput();
}
R‹out_oFragColorout_oFragColorstruct GS_INPUT
{
    float4 dx_Position : SV_Position;
    float4 gl_Position : TEXCOORD1;
    float2 v0 : TEXCOORD0;
};
 
struct GS_OUTPUT
{
    float4 dx_Position : SV_Position;
    float4 gl_Position : TEXCOORD1;
    float2 v0 : TEXCOORD0;
};
 
void copyVertex(inout GS_OUTPUT output, GS_INPUT input, GS_INPUT flatinput)
{
    output.gl_Position = input.gl_Position;
    output.v0 = input.v0; 
#ifndef ANGLE_POINT_SPRITE_SHADER
    output.dx_Position = input.dx_Position;
#endif  // ANGLE_POINT_SPRITE_SHADER
}
¶¦¦¦¦¦h
DXBCÌw[Қ¾ÅAy,•À±†h
4˜D´Ì    RDEF\Ä<þÿÁ4RD11< ($ œÿÿÿÿ ª³textures2D[0]$GlobalsDriverConstants«ªô@³Xp@4ÿÿÿÿÿÿÿÿ_uTransformfloat4x4«««(H`ÿÿÿÿÿÿÿÿ„ œÿÿÿÿÿÿÿÿÀ0œÿÿÿÿÿÿÿÿÍ<èÿÿÿÿÿÿÿÿ @èÿÿÿÿÿÿÿÿ!P ÿÿÿÿÿÿÿÿdx_ViewAdjustfloat4«««Vdx_ViewCoordsfloat2«««’dx_ViewScaleclipControlOriginfloat«««ßclipControlZeroToOnesamplerMetadataSamplerMetadatabaseLevelint«KinternalFormatBitswrapModespaddingintBorderColorint4«««¨APtP‡P‘P ™°Ô1Microsoft (R) HLSL Shader Compiler 10.1ISGN¤˜˜˜˜˜˜TEXCOORD«««OSGNhP\\ SV_PositionTEXCOORD«««SHEXPjYFŽ YFŽ XpUU_2_ò_ò_"_ò_ògò eò e2 h2    òFFæÂ€A¦2    2Fæ
F42FF32Fæ2F€AF2Fæ
€A¦2    2Fæ
FB B*@*=‰Â€CUÂ@ætS
¦@+¦2 Fæ
62 F6B@€?Fƒ F"Fƒ FBFƒ F‚Fƒ F8" :€ 9 @
€ ":*8"@?7    B 
*6’  6ò F>STAT”     àŒ´DXBC °…Ü…+ø!±Éº^¼K1´4ül RDEFÀ<ÿÿÁ˜RD11< ($ |Šÿÿÿÿ samplers2D[0]textures2D[0]Microsoft (R) HLSL Shader Compiler 10.1ISGNhP\\SV_PositionTEXCOORD«««OSGN, SV_TARGET««SHEXpPjZ`XpUUb2eò E‹Â€CUò FF~`>STAT”¦“½±™­÷G™