diff options
| author | skal <pascal.massimino@gmail.com> | 2026-03-11 07:30:44 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-03-11 07:30:44 +0100 |
| commit | ce032eb25a480c086edcd7bbfa4a742e5e44a6a7 (patch) | |
| tree | 61c1ac1e47af7008b5bb47cd177b30fbaf75a1ed /src | |
| parent | c9e334818e34ee6827cd2e934d44a3ac44178d39 (diff) | |
fix(headless): add missing sampler/texture stubs to gpu_headless.cc
gpu_create_linear_sampler, gpu_create_nearest_sampler, and
gpu_create_dummy_scene_texture were defined only in gpu.cc, causing
link errors in DEMO_HEADLESS mode.
handoff(Gemini): headless mode link error fixed, 35/35 tests should still pass.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/gpu/gpu_headless.cc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/gpu/gpu_headless.cc b/src/gpu/gpu_headless.cc index e6995b2..547ca18 100644 --- a/src/gpu/gpu_headless.cc +++ b/src/gpu/gpu_headless.cc @@ -129,6 +129,21 @@ WGPUTextureView gpu_create_texture_view_2d(WGPUTexture texture, return nullptr; } +WGPUSampler gpu_create_linear_sampler(WGPUDevice device) { + (void)device; + return nullptr; +} + +WGPUSampler gpu_create_nearest_sampler(WGPUDevice device) { + (void)device; + return nullptr; +} + +TextureWithView gpu_create_dummy_scene_texture(WGPUDevice device) { + (void)device; + return {nullptr, nullptr}; +} + #if !defined(STRIP_ALL) void gpu_simulate_until(float time, float bpm) { (void)time; |
