Rise
The Vieneo Province
Loading...
Searching...
No Matches
Tests/WindshieldDamageTests.cpp

Source at documentation-generation time. See Test catalog for fixture associations.

1// Run from the repository root. Uses an offscreen D3D9 device; no game/server login.
2#include <Windows.h>
3#include <d3dx9.h>
4#include <wrl/client.h>
5#include <cstdlib>
6#include <iostream>
7#include <vector>
8#include <fstream>
9#include <set>
10#include <string>
11#include <algorithm>
12#include <cstdint>
13using Microsoft::WRL::ComPtr;
14
15static void Check(bool ok, const char* message)
16{
17 if (!ok) { std::cerr << "FAIL: " << message << '\n'; std::exit(1); }
18}
19static void HR(HRESULT hr, const char* message) { Check(SUCCEEDED(hr), message); }
20
21static constexpr int RenderWidth = 1152, RenderHeight = 576;
22struct Vertex { float x, y, z, nx, ny, nz, u, v; };
23
24static std::vector<Vertex> MakeQuad(float u, float v, float width, float height)
25{
26 return {{-1,1,.5f,0,0,1,u,v}, {1,1,.5f,0,0,1,u+width,v},
27 {-1,-1,.5f,0,0,1,u,v+height}, {1,1,.5f,0,0,1,u+width,v},
28 {1,-1,.5f,0,0,1,u+width,v+height}, {-1,-1,.5f,0,0,1,u,v+height}};
29}
30
31template<class T> static T ReadAt(std::ifstream& file, std::streamoff offset)
32{
33 T value{};
34 file.seekg(offset); file.read(reinterpret_cast<char*>(&value), sizeof(value));
35 Check(file.good(), "read shipped cockpit mesh");
36 return value;
37}
38
39// Front orthographic projection of actual exported glass triangles and UVs.
40// The game uses Z as height. Component translations cancel when centering the view.
41static std::vector<Vertex> LoadFrontGlass(const char* name, int normalAxis)
42{
43 std::ifstream dix(std::string("Meshes/") + name + ".dix", std::ios::binary);
44 std::ifstream daw(std::string("Meshes/") + name + ".daw", std::ios::binary);
45 Check(dix.good() && daw.good(), "open shipped cockpit mesh");
46 const int vertexCount = ReadAt<unsigned short>(daw, 0);
47 Check(vertexCount > 0, "nonempty shipped cockpit mesh");
48 daw.seekg(0, std::ios::end);
49 const int stride = int((std::streamoff(daw.tellg()) - 4) / vertexCount);
50 Check(stride == 32 || stride == 40, "supported shipped DAW vertex layout");
51 std::vector<Vertex> vertices;
52 const auto count = ReadAt<short>(dix, 0);
53 for (int component = 0; component < count; ++component) {
54 const std::streamoff offset = 99 + 100 * component;
55 if (ReadAt<unsigned char>(dix, offset + 58) != 5) continue;
56 const int start = ReadAt<short>(dix, offset), triangles = ReadAt<short>(dix, offset + 2);
57 for (int t = 0; t < triangles; ++t) {
58 Vertex tri[3];
59 for (int i = 0; i < 3; ++i) tri[i] = ReadAt<Vertex>(daw, 2 + stride * (start + t * 3 + i));
60 const float normal[] = {tri[0].nx, tri[0].ny, tri[0].nz};
61 if (normal[normalAxis] > -.5f) continue;
62 vertices.insert(vertices.end(), std::begin(tri), std::end(tri));
63 }
64 }
65 Check(!vertices.empty(), "front glass triangles found");
66 float minX = vertices[0].x, maxX = minX, minZ = vertices[0].z, maxZ = minZ;
67 for (const auto& v : vertices) {
68 minX = (std::min)(minX, v.x); maxX = (std::max)(maxX, v.x);
69 minZ = (std::min)(minZ, v.z); maxZ = (std::max)(maxZ, v.z);
70 }
71 const float aspect = float(RenderWidth) / RenderHeight;
72 const float scale = (std::min)(1.8f * aspect / (maxX - minX), 1.8f / (maxZ - minZ));
73 for (auto& v : vertices) {
74 const float height = v.z;
75 v.x = (v.x - (minX + maxX) * .5f) * scale / aspect;
76 v.y = (height - (minZ + maxZ) * .5f) * scale;
77 v.z = .5f; v.nx = v.ny = 0; v.nz = 1;
78 }
79 return vertices;
80}
81
82int main(int argc, char** argv)
83{
84 HWND window = CreateWindowW(L"STATIC", L"Windshield test", WS_POPUP, 0, 0, RenderWidth, RenderHeight, nullptr, nullptr, nullptr, nullptr);
85 Check(window != nullptr, "create hidden device window");
86 ComPtr<IDirect3D9> d3d;
87 d3d.Attach(Direct3DCreate9(D3D_SDK_VERSION));
88 Check(d3d != nullptr, "create Direct3D9");
89 D3DPRESENT_PARAMETERS pp{};
90 pp.Windowed = TRUE; pp.SwapEffect = D3DSWAPEFFECT_DISCARD;
91 pp.hDeviceWindow = window; pp.BackBufferWidth = RenderWidth; pp.BackBufferHeight = RenderHeight;
92 ComPtr<IDirect3DDevice9> device;
93 HR(d3d->CreateDevice(D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, window,
94 D3DCREATE_SOFTWARE_VERTEXPROCESSING, &pp, &device), "create offscreen HAL device");
95 ComPtr<ID3DXEffect> effect;
96 ComPtr<ID3DXBuffer> errors;
97 HRESULT compiled = D3DXCreateEffectFromFileA(device.Get(), argc > 2 ? argv[2] : "CustomUI.fx", nullptr, nullptr, 0, nullptr, &effect, &errors);
98 if (errors) std::cout << static_cast<const char*>(errors->GetBufferPointer());
99 HR(compiled, "compile shipped effect");
100 HR(effect->SetTechnique("TShader"), "select shipped technique");
101 ComPtr<IDirect3DSurface9> target, readback;
102 HR(device->CreateRenderTarget(RenderWidth, RenderHeight, D3DFMT_A8R8G8B8, D3DMULTISAMPLE_NONE, 0, FALSE, &target, nullptr), "create render target");
103 HR(device->CreateOffscreenPlainSurface(RenderWidth, RenderHeight, D3DFMT_A8R8G8B8, D3DPOOL_SYSTEMMEM, &readback, nullptr), "create readback");
104 HR(device->SetRenderTarget(0, target.Get()), "bind target");
105 HR(device->SetRenderState(D3DRS_ZENABLE, FALSE), "disable depth");
106 HR(device->SetRenderState(D3DRS_CULLMODE, D3DCULL_NONE), "disable culling");
107 HR(device->SetRenderState(D3DRS_ALPHABLENDENABLE, FALSE), "capture straight shader output");
108 HR(device->SetFVF(D3DFVF_XYZ | D3DFVF_NORMAL | D3DFVF_TEX1), "set glass vertex format");
109 D3DXMATRIX identity; D3DXMatrixIdentity(&identity);
110 HR(effect->SetMatrix("matWorld", &identity), "set world");
111 HR(effect->SetMatrix("matWorldViewProj", &identity), "set projection");
112 D3DXVECTOR4 ambient(1, 1, 1, 0), noLight(0, 0, 0, 1);
113 HR(effect->SetVector("ambient", &ambient), "set ambient");
114 HR(effect->SetVector("Sunlight", &noLight), "set sunlight");
115 HR(effect->SetVector("Radiosity", &noLight), "set radiosity");
116 auto solid = [&](DWORD color) {
117 ComPtr<IDirect3DTexture9> texture;
118 HR(device->CreateTexture(1, 1, 1, 0, D3DFMT_A8R8G8B8, D3DPOOL_MANAGED, &texture, nullptr), "create test texture");
119 D3DLOCKED_RECT lock{};
120 HR(texture->LockRect(0, &lock, nullptr, 0), "lock test texture");
121 *static_cast<DWORD*>(lock.pBits) = color;
122 HR(texture->UnlockRect(0), "unlock test texture");
123 return texture;
124 };
125 auto glass = solid(D3DCOLOR_ARGB(64, 64, 96, 128));
126 HR(effect->SetTexture("ColorMap", glass.Get()), "bind base glass");
127 auto quad = MakeQuad(0, 0, 1.f / 3, 1.f / 3);
128 auto render = [&](IDirect3DTexture9* cracks, bool damaged, float progression = 0.f) {
129 D3DXVECTOR4 features(damaged ? 1.f : 0.f, progression, 0, 0);
130 HR(effect->SetVector("Features", &features), "set damage flag");
131 HR(effect->SetTexture("ColorMap3", cracks), "bind crack texture");
132 HR(device->Clear(0, nullptr, D3DCLEAR_TARGET, 0, 1, 0), "clear target");
133 HR(device->BeginScene(), "begin scene");
134 HR(effect->Begin(nullptr, 0), "begin effect");
135 HR(effect->BeginPass(8), "begin windshield pass");
136 HR(device->DrawPrimitiveUP(D3DPT_TRIANGLELIST, static_cast<UINT>(quad.size() / 3), quad.data(), sizeof(Vertex)), "draw glass");
137 HR(effect->EndPass(), "end windshield pass");
138 HR(effect->End(), "end effect");
139 HR(device->EndScene(), "end scene");
140 HR(device->GetRenderTargetData(target.Get(), readback.Get()), "read rendered glass");
141 D3DLOCKED_RECT lock{};
142 HR(readback->LockRect(&lock, nullptr, D3DLOCK_READONLY), "lock rendered glass");
143 std::vector<DWORD> pixels(RenderWidth * RenderHeight);
144 for (int y = 0; y < RenderHeight; ++y)
145 memcpy(pixels.data() + y * RenderWidth, static_cast<const char*>(lock.pBits) + y * lock.Pitch, RenderWidth * sizeof(DWORD));
146 HR(readback->UnlockRect(), "unlock rendered glass");
147 return pixels;
148 };
149 auto clear = solid(0), white = solid(0xffffffff), half = solid(0x80ffffff);
150 const auto intact = render(white.Get(), false);
151 Check(intact[0] != 0, "glass actually rendered");
152 const auto stressOnly = render(clear.Get(), true);
153 Check(std::count(stressOnly.begin(), stressOnly.end(), intact[0]) > intact.size() * .95,
154 "transparent crack regions preserve original glass outside sparse stress lines");
155 Check(render(white.Get(), true)[0] == 0xffffffff, "opaque fractures receive light even over mostly clear glass");
156 const DWORD partial = render(half.Get(), true)[0];
157 Check((partial >> 24) >= 159 && (partial >> 24) <= 161, "partial fracture alpha composites over existing glass alpha");
158 auto transparentGlass = solid(0);
159 HR(effect->SetTexture("ColorMap", transparentGlass.Get()), "bind fully clear glass");
160 Check(render(white.Get(), true)[0] == 0xffffffff, "fractures remain visible over fully clear glass");
161 HR(effect->SetTexture("ColorMap", glass.Get()), "restore base glass");
162 // Distinct solid tile colors detect atlas bleed and sampling the whole atlas as one sprite.
163 ComPtr<IDirect3DTexture9> markerAtlas;
164 HR(device->CreateTexture(1024, 1024, 1, 0, D3DFMT_A8R8G8B8, D3DPOOL_MANAGED, &markerAtlas, nullptr), "create marker atlas");
165 const DWORD colors[] = {0xffff0000, 0xff00ff00, 0xff0000ff, 0xffffffff};
166 D3DLOCKED_RECT markerLock{};
167 HR(markerAtlas->LockRect(0, &markerLock, nullptr, 0), "lock marker atlas");
168 for (int y = 0; y < 1024; ++y) for (int x = 0; x < 1024; ++x)
169 reinterpret_cast<DWORD*>(static_cast<char*>(markerLock.pBits) + y * markerLock.Pitch)[x] = colors[(y / 512) * 2 + x / 512];
170 HR(markerAtlas->UnlockRect(0), "unlock marker atlas");
171 quad = MakeQuad(0, 0, 2, 2);
172 const auto markers = render(markerAtlas.Get(), true);
173 std::set<DWORD> selected;
174 for (DWORD color : markers)
175 Check(std::find(std::begin(colors), std::end(colors), color) != std::end(colors), "atlas filtering never blends neighboring variants");
176 for (int cy = 0; cy < 6; ++cy) for (int cx = 0; cx < 6; ++cx) {
177 const DWORD color = markers[(cy * RenderHeight / 6 + RenderHeight / 12) * RenderWidth + cx * RenderWidth / 6 + RenderWidth / 12];
178 Check(std::find(std::begin(colors), std::end(colors), color) != std::end(colors), "atlas sample stays within one tile");
179 selected.insert(color);
180 // At exact cell boundaries, float interpolation may select either adjacent cell.
181 for (int y = 1; y < RenderHeight / 6 - 1; ++y) for (int x = 1; x < RenderWidth / 6 - 1; ++x)
182 Check(markers[(cy * RenderHeight / 6 + y) * RenderWidth + cx * RenderWidth / 6 + x] == color,
183 "each glass cell selects exactly one fracture variant without atlas bleed");
184 }
185 Check(selected.size() == 4, "all four fracture variants are sampled");
186 quad = MakeQuad(0, 0, 1.f / 3, 1.f / 3);
187 ComPtr<IDirect3DTexture9> asset;
188 HR(D3DXCreateTextureFromFileExW(device.Get(), L"Textures\\Cockpits\\Cracked.dds",
189 D3DX_DEFAULT, D3DX_DEFAULT, 1, 0, D3DFMT_DXT5, D3DPOOL_MANAGED,
190 D3DX_FILTER_NONE, D3DX_FILTER_NONE, 0, nullptr, nullptr, &asset), "load shipped crack DDS using runtime settings");
191 D3DSURFACE_DESC desc{};
192 HR(asset->GetLevelDesc(0, &desc), "read texture description");
193 Check(desc.Width == 1024 && desc.Height == 1024 && desc.Format == D3DFMT_DXT5, "1024-square DXT5 asset");
194 // Inspect decoded DDS pixels so compression cannot introduce visible tile-border artifacts.
195 ComPtr<IDirect3DSurface9> atlasSurface, decoded;
196 HR(asset->GetSurfaceLevel(0, &atlasSurface), "read atlas surface");
197 HR(device->CreateOffscreenPlainSurface(1024, 1024, D3DFMT_A8R8G8B8, D3DPOOL_SYSTEMMEM, &decoded, nullptr), "create decoded atlas");
198 HR(D3DXLoadSurfaceFromSurface(decoded.Get(), nullptr, nullptr, atlasSurface.Get(), nullptr, nullptr, D3DX_FILTER_NONE, 0), "decode atlas");
199 D3DLOCKED_RECT atlasLock{};
200 HR(decoded->LockRect(&atlasLock, nullptr, D3DLOCK_READONLY), "lock decoded atlas");
201 std::set<std::uint64_t> shapes;
202 for (int ty = 0; ty < 2; ++ty) for (int tx = 0; tx < 2; ++tx) {
203 std::uint64_t hash = 14695981039346656037ull;
204 int visiblePixels = 0;
205 for (int y = 0; y < 512; ++y) for (int x = 0; x < 512; ++x) {
206 const DWORD pixel = reinterpret_cast<const DWORD*>(static_cast<const char*>(atlasLock.pBits) + (ty * 512 + y) * atlasLock.Pitch)[tx * 512 + x];
207 const DWORD alpha = pixel >> 24;
208 hash = (hash ^ alpha) * 1099511628211ull;
209 visiblePixels += alpha > 2;
210 if (x < 8 || y < 8 || x >= 504 || y >= 504)
211 Check(alpha <= 2, "each compressed fracture tile has a clear padded border");
212 }
213 Check(visiblePixels > 100 && visiblePixels < 512 * 512 / 8, "every atlas variant has sparse visible fractures");
214 shapes.insert(hash);
215 }
216 HR(decoded->UnlockRect(), "unlock decoded atlas");
217 Check(shapes.size() == 4, "DDS contains four different fracture silhouettes");
218 Check(render(asset.Get(), false) == intact, "intact windshield ignores shipped cracks");
219 const auto damaged = render(asset.Get(), true);
220 size_t unchanged = 0, visible = 0;
221 for (size_t i = 0; i < damaged.size(); ++i) {
222 unchanged += damaged[i] == intact[i];
223 visible += (damaged[i] >> 24) > (intact[i] >> 24);
224 }
225 Check(unchanged > damaged.size() * .85, "at least 85 percent of windshield remains unchanged");
226 Check(visible > damaged.size() * .005, "shipped fracture pattern is visible");
227
228 auto save = [&](const char* suffix) {
229 if (argc > 1) HR(D3DXSaveSurfaceToFileA((std::string(argv[1]) + suffix + ".png").c_str(),
230 D3DXIFF_PNG, readback.Get(), nullptr, nullptr), "save optional preview");
231 };
232 save("-single");
233 Check(render(asset.Get(), false) == intact, "repair removes crack overlay");
234
235 // A complete UV unit catches the wallpaper pattern missed by a single-tile test.
236 quad = MakeQuad(0, 0, 1, 1);
237 const auto fullIntact = render(asset.Get(), false);
238 const auto full = render(asset.Get(), true);
239 save("-uv");
240 Check(render(asset.Get(), true) == full, "pattern is stable across frames");
241 size_t coverage = 0;
242 for (size_t i = 0; i < full.size(); ++i) coverage += (full[i] >> 24) > (fullIntact[i] >> 24);
243 const double fraction = double(coverage) / full.size();
244 Check(fraction > .005 && fraction < .04, "full windshield has sparse visible fractures");
245 std::set<std::uint64_t> cells;
246 for (int cy = 0; cy < 3; ++cy) for (int cx = 0; cx < 3; ++cx) {
247 std::uint64_t hash = 14695981039346656037ull;
248 for (int y = 0; y < RenderHeight / 3; ++y) for (int x = 0; x < RenderWidth / 3; ++x) {
249 const int index = (cy * RenderHeight / 3 + y) * RenderWidth + cx * RenderWidth / 3 + x;
250 hash = (hash ^ full[index]) * 1099511628211ull;
251 if (x == 0 || y == 0 || x == RenderWidth / 3 - 1 || y == RenderHeight / 3 - 1)
252 Check(full[index] == fullIntact[index], "fractures do not clip or wrap at cell borders");
253 }
254 cells.insert(hash);
255 }
256 Check(cells.size() == 9, "neighboring cells show different impact patterns");
257 quad = MakeQuad(1.f / 3, 0, 1, 1);
258 const auto shifted = render(asset.Get(), true);
259 int maxDelta = 0;
260 for (int y = 0; y < RenderHeight; ++y) for (int x = 0; x < RenderWidth * 2 / 3; ++x) {
261 const DWORD a = shifted[y * RenderWidth + x], b = full[y * RenderWidth + x + RenderWidth / 3];
262 for (int shift = 0; shift < 32; shift += 8)
263 maxDelta = (std::max)(maxDelta, std::abs(int((a >> shift) & 255) - int((b >> shift) & 255)));
264 }
265 // One LSB allows interpolation rounding when shifting by a non-binary UV fraction.
266 std::cout << "UV shift maximum channel difference: " << maxDelta << '\n';
267 Check(maxDelta <= 1, "UV view movement preserves the pattern on the glass");
268
269 // Damage adds fixed edge segments; it must never rescale, move, or erase earlier cracks.
270 quad = MakeQuad(0, 0, 1, 1);
271 const auto severe = render(asset.Get(), true, 1.f);
272 save("-hp0");
273 std::vector<DWORD> previous = full;
274 double initialAlpha = 0, finalAlpha = 0;
275 for (size_t i = 0; i < full.size(); ++i) {
276 initialAlpha += full[i] >> 24;
277 finalAlpha += severe[i] >> 24;
278 }
279 Check(finalAlpha > initialAlpha + full.size() * 15, "zero hitpoints has dense safety-glass damage");
280 for (int hp = 94; hp >= 0; --hp) {
281 const float progression = (95.f - hp) / 95.f;
282 const auto stage = render(asset.Get(), true, progression);
283 double alpha = 0;
284 for (size_t i = 0; i < stage.size(); ++i) {
285 Check((stage[i] >> 24) >= (previous[i] >> 24), "degrading glass never removes or moves an existing crack");
286 alpha += stage[i] >> 24;
287 }
288 const double visibleProgression = (alpha - initialAlpha) / (finalAlpha - initialAlpha);
289 Check(std::abs(visibleProgression - progression) < .06, "visible fracture accumulation follows linear damage");
290 if (hp % 19 == 0) {
291 const std::string suffix = "-hp" + std::to_string(hp);
292 save(suffix.c_str());
293 std::cout << "HP " << hp << ": visible progression " << visibleProgression << '\n';
294 }
295 previous = stage;
296 }
297 Check(render(asset.Get(), true, 1.f) == severe, "severe damage is stable across frames");
298 quad = MakeQuad(1.f / 3, 0, 1, 1);
299 const auto severeShifted = render(asset.Get(), true, 1.f);
300 int severeDelta = 0, severeChanged = 0;
301 for (int y = 0; y < RenderHeight; ++y) for (int x = 0; x < RenderWidth * 2 / 3; ++x) {
302 const DWORD a = severeShifted[y * RenderWidth + x], b = severe[y * RenderWidth + x + RenderWidth / 3];
303 int delta = 0;
304 for (int shift = 0; shift < 32; shift += 8)
305 delta = (std::max)(delta, std::abs(int((a >> shift) & 255) - int((b >> shift) & 255)));
306 severeDelta = (std::max)(severeDelta, delta);
307 severeChanged += delta > 1;
308 }
309 std::cout << "Severe UV shift maximum channel difference: " << severeDelta << " (pixels > 1: " << severeChanged << ")" << '\n';
310 // Fractional UV interpolation can choose either edge at a three-site junction.
311 // Permit subpixel junction rounding in under 0.01% of the overlap, never pattern movement.
312 Check(severeChanged < RenderWidth * RenderHeight * 2 / 3 * .0001,
313 "severe fracture network remains attached to glass when the view moves");
314 quad = MakeQuad(0, 0, 1, 1);
315
316 // Fully shattered glass needs fractures throughout the pane, not isolated impact decals.
317 for (int cy = 0; cy < 12; ++cy) for (int cx = 0; cx < 12; ++cx) {
318 int edges = 0;
319 for (int y = cy * RenderHeight / 12; y < (cy + 1) * RenderHeight / 12; ++y)
320 for (int x = cx * RenderWidth / 12; x < (cx + 1) * RenderWidth / 12; ++x)
321 edges += (severe[y * RenderWidth + x] >> 24) > 90;
322 Check(edges > 40, "safety-glass fractures span every region of the pane");
323 }
324 Check(render(asset.Get(), false, 1.f) == fullIntact, "repair disables even maximum fracture progression");
325 Check(render(asset.Get(), true, 0.f) == full, "repair to 95 restores the initial pattern exactly");
326
327 struct Cockpit { const char* mesh; int normalAxis; const char* suffix; };
328 const Cockpit cockpits[] = {{"T-120 Steerhead-stock INT", 2, "-t120"},
329 {"mammoth-int", 1, "-mammoth"}, {"e10cockpit1", 2, "-e10"}};
330 for (const auto& cockpit : cockpits) {
331 quad = LoadFrontGlass(cockpit.mesh, cockpit.normalAxis);
332 const auto dry = render(asset.Get(), false);
333 const auto cracked = render(asset.Get(), true);
334 save(cockpit.suffix);
335 size_t glassPixels = 0, fracturePixels = 0;
336 for (size_t i = 0; i < dry.size(); ++i) {
337 glassPixels += dry[i] != 0;
338 fracturePixels += cracked[i] != dry[i];
339 }
340 Check(glassPixels > 10000 && fracturePixels > 50, "visible fractures on shipped front windshield");
341 Check(fracturePixels < glassPixels * .1, "shipped windshield retains clear space");
342 const auto shattered = render(asset.Get(), true, 1.f);
343 const std::string severeSuffix = std::string(cockpit.suffix) + "-hp0";
344 save(severeSuffix.c_str());
345 size_t severePixels = 0;
346 for (size_t i = 0; i < dry.size(); ++i) {
347 severePixels += shattered[i] != dry[i];
348 Check((shattered[i] >> 24) >= (cracked[i] >> 24), "shipped mesh retains initial cracks at zero");
349 }
350 Check(severePixels > fracturePixels * 4, "shipped mesh gains widespread cracks at zero");
351 Check(render(asset.Get(), false, 1.f) == dry, "repair clears shipped windshield");
352 std::cout << "PASS: " << cockpit.mesh << " front glass; " << 100. * fracturePixels / glassPixels << "% affected pixels\n";
353 }
354 std::cout << "PASS: four atlas variants without bleed, shader/DDS alpha, sparse full-UV coverage " << fraction * 100 << "%, " << cells.size()
355 << " distinct cells, stable UV placement, all 96 damage levels, linear accumulation, repair, and three shipped windshields\n";
356 effect.Reset(); device.Reset(); d3d.Reset(); DestroyWindow(window);
357}
SCRIPT_CONTROL SCRIPT_STATE const void int
HRESULT(WINAPI *CUniBuffer::_ScriptApplyDigitSubstitution)(const SCRIPT_DIGITSUBSTITUTE *
SCRIPT_CONTROL SCRIPT_STATE const void DWORD