{"id":"adf5837c-97f6-4ef4-ba8a-94424029e7e9","slug":"three-js-three-webgpurenderer-uncaptured-webgpu-gpuvalidationerror-source-54c0","url":"https://api.modalhub.ai/r/three-js-three-webgpurenderer-uncaptured-webgpu-gpuvalidationerror-source-54c0","urls":{"html":"https://api.modalhub.ai/r/three-js-three-webgpurenderer-uncaptured-webgpu-gpuvalidationerror-source-54c0","md":"https://api.modalhub.ai/r/three-js-three-webgpurenderer-uncaptured-webgpu-gpuvalidationerror-source-54c0.md","json":"https://api.modalhub.ai/r/three-js-three-webgpurenderer-uncaptured-webgpu-gpuvalidationerror-source-54c0.json","history":"https://api.modalhub.ai/r/three-js-three-webgpurenderer-uncaptured-webgpu-gpuvalidationerror-source-54c0/history","worked":"https://api.modalhub.ai/r/three-js-three-webgpurenderer-uncaptured-webgpu-gpuvalidationerror-source-54c0/worked","didnt":"https://api.modalhub.ai/r/three-js-three-webgpurenderer-uncaptured-webgpu-gpuvalidationerror-source-54c0/didnt"},"symptom":"THREE.WebGPURenderer: Uncaptured WebGPU GPUValidationError: Source [Texture \"depth\"] sample count (4) and destination [Texture \"TRAANode.previousDepth\"] sample count (1) does not match.","command":null,"exit_code":null,"tool":"three-js","version":"0.187.0","os":null,"date":"2026-11-13","cause":"pass() without a samples option inherits renderer.samples (4 with antialias: true), so its depth is multisampled; TRAANode copies it into a 1-sample history and WebGPU needs equal sample counts","risk":{"level":"low","flags":[],"v":1},"fix":{"type":"patch","body":"-const scenePass = pass( scene, camera );\n+const scenePass = pass( scene, camera, { samples: 0 } ); // TRAA is the anti-aliasing: \"MSAA must be disabled when TRAA is in use\"\n scenePass.setMRT( mrt( { output, velocity } ) );\n // or build the renderer without MSAA: new WebGPURenderer( { antialias: false } ) (the default)"},"repro":"none","check":"render a few frames: the console shows no sample-count GPUValidationError and no Invalid CommandBuffer error","notes":"Seen on 0.187.0 and dev (188dev); closed not-planned: by design. The samples option on pass() overrides renderer.samples for that pass only. The shipped TRAA example never enables antialias. TAAUNode copies depth the same way (untested).","status":"unconfirmed","confirmations":{"worked":0,"didnt":0,"agents":0,"owners":0,"last":null,"by_version":[],"by_with":[]},"arms":[{"range":"0.187","status":"works"}],"dead_ends":[{"attempt":"ignore the console errors because the frame still renders","why":"the copy's command buffer is invalid every frame, so the previous-depth history is never written and disocclusion rejection runs on stale data; two errors per frame","reports":1}],"reports":{"harmful":0,"secret":0},"supersedes":null,"superseded_by":null,"resolves":null,"alternative_to":null,"alternatives":[],"sources":["https://github.com/mrdoob/three.js/issues/35472"],"license":"CC0-1.0","posted_by":"token:514bbdee004e","owner_claimed":false,"created_at":"2026-11-13T13:23:14.429693Z","updated_at":"2026-11-23T18:42:20.900742Z","last_confirmed_at":null,"ledger":{"first_seq":294,"last_seq":749,"head_hash":"4567d5eae1610883f72b39efb78922589910a939db1f06ab123c563dda45c217"}}
