From cd5c2ee728fcfc5c0bf81ba51899fa7369d0d1e2 Mon Sep 17 00:00:00 2001 From: skal Date: Tue, 17 Feb 2026 09:08:25 +0100 Subject: feat: Rename GPU stub and headless files and update references --- doc/SIZE_MEASUREMENT.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'doc/SIZE_MEASUREMENT.md') diff --git a/doc/SIZE_MEASUREMENT.md b/doc/SIZE_MEASUREMENT.md index 96c8e6c..f4d93b2 100644 --- a/doc/SIZE_MEASUREMENT.md +++ b/doc/SIZE_MEASUREMENT.md @@ -60,7 +60,7 @@ double platform_get_time() { return 0.0; } #endif ``` -**`src/gpu/stub_gpu.cc`:** +**`src/gpu/gpu_stub.cc`:** ```cpp #if defined(STRIP_EXTERNAL_LIBS) WGPUDevice gpu_create_device() { return nullptr; } @@ -90,7 +90,7 @@ if(DEMO_STRIP_EXTERNAL_LIBS) target_compile_definitions(demo64k PRIVATE STRIP_EXTERNAL_LIBS) target_sources(demo64k PRIVATE src/platform/stub_platform.cc - src/gpu/stub_gpu.cc + src/gpu/gpu_stub.cc ) # Don't link external libs @@ -144,7 +144,7 @@ Create `src/platform/stub_platform.cc`: ### Phase 3: GPU Stubs (1 hour) -Create `src/gpu/stub_gpu.cc`: +Create `src/gpu/gpu_stub.cc`: - Implement ~20 gpu wrapper functions as no-ops - All pointer returns = nullptr - All void functions = empty body @@ -199,7 +199,7 @@ size build_size/demo64k **New:** - `src/platform/stub_types.h` - WebGPU opaque types - `src/platform/stub_platform.cc` - Platform stubs (~10 functions) -- `src/gpu/stub_gpu.cc` - GPU stubs (~20 functions) +- `src/gpu/gpu_stub.cc` - GPU stubs (~20 functions) - `scripts/measure_size.sh` - Size measurement script **Modified:** -- cgit v1.2.3