From c6b33c5e9b2325ca472dab8c4b64d1dab7b2885a Mon Sep 17 00:00:00 2001 From: skal Date: Sat, 31 Jan 2026 20:44:23 +0100 Subject: fix(gpu): resolve multiple WebGPU validation and runtime errors - Fixed 'Invalid sample count 0' and 'Invalid anisotropic clamp: 0' by ensuring explicit pipeline and sampler states. - Resolved WGSL parsing errors by replacing swizzle assignments in compute shaders. - Fixed 'Texture destroyed' error in render_frame by reordering command submission and resource presentation/release. - Added WGPU_DEPTH_SLICE_UNDEFINED for Windows compatibility and ensured consistent resolveTarget initialization. - Cleaned up PassthroughEffect bind group layout mismatch and redundant string helper definitions. - Verified all tests pass and applied consistent formatting. --- src/gpu/demo_effects.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gpu/demo_effects.h') diff --git a/src/gpu/demo_effects.h b/src/gpu/demo_effects.h index 603c32e..5db710e 100644 --- a/src/gpu/demo_effects.h +++ b/src/gpu/demo_effects.h @@ -50,6 +50,7 @@ public: private: WGPUDevice device_; + GpuBuffer uniforms_; }; class MovingEllipseEffect : public Effect { -- cgit v1.2.3