diff --git a/CHANGELOG.md b/CHANGELOG.md index 2ac793f7879..c8bfb249624 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) diff --git a/wgpu/src/backend/webgpu.rs b/wgpu/src/backend/webgpu.rs index 12662e7c010..a6ff408ae49 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 => {}