From 373dfbb4bf70531b272a037417383813d637e9d2 Mon Sep 17 00:00:00 2001 From: atlas dostal Date: Mon, 23 Jun 2025 13:17:12 -0400 Subject: [PATCH 1/2] fix(webgpu): set_unclipped_depth --- wgpu/src/backend/webgpu.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wgpu/src/backend/webgpu.rs b/wgpu/src/backend/webgpu.rs index 12662e7c01..a6ff408ae4 100644 --- a/wgpu/src/backend/webgpu.rs +++ b/wgpu/src/backend/webgpu.rs @@ -380,8 +380,7 @@ fn map_primitive_state(primitive: &wgt::PrimitiveState) -> webgpu_sys::GpuPrimit PrimitiveTopology::TriangleStrip => pt::TriangleStrip, }); - //TODO: - //mapped.unclipped_depth(primitive.unclipped_depth); + mapped.set_unclipped_depth(primitive.unclipped_depth); match primitive.polygon_mode { wgt::PolygonMode::Fill => {} From 9f4cbdde845d534bbd0f0a20c98d7faea9e98ba2 Mon Sep 17 00:00:00 2001 From: atlas dostal Date: Mon, 23 Jun 2025 13:26:53 -0400 Subject: [PATCH 2/2] changelog --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2ac793f787..c8bfb24962 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -92,6 +92,10 @@ Bottom level categories: - Remove extraneous main thread warning in `fn surface_capabilities()`. By @jamesordner in [#7692](https://github.com/gfx-rs/wgpu/pull/7692) +#### WebGPU + +- Fix setting unclipped_depth. By @atlv24 in [#7841](https://github.com/gfx-rs/wgpu/pull/7841) + ### Changes - Loosen Viewport validation requirements to match the [new specs](https://github.com/gpuweb/gpuweb/pull/5025). By @ebbdrop in [#7564](https://github.com/gfx-rs/wgpu/pull/7564)