Skip to content

Commit 0c05dbf

Browse files
authored
fix(webgpu): set_unclipped_depth (#7841)
1 parent 440b33f commit 0c05dbf

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,10 @@ Bottom level categories:
9292

9393
- Remove extraneous main thread warning in `fn surface_capabilities()`. By @jamesordner in [#7692](https://github.com/gfx-rs/wgpu/pull/7692)
9494

95+
#### WebGPU
96+
97+
- Fix setting unclipped_depth. By @atlv24 in [#7841](https://github.com/gfx-rs/wgpu/pull/7841)
98+
9599
### Changes
96100

97101
- 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)

wgpu/src/backend/webgpu.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,8 +380,7 @@ fn map_primitive_state(primitive: &wgt::PrimitiveState) -> webgpu_sys::GpuPrimit
380380
PrimitiveTopology::TriangleStrip => pt::TriangleStrip,
381381
});
382382

383-
//TODO:
384-
//mapped.unclipped_depth(primitive.unclipped_depth);
383+
mapped.set_unclipped_depth(primitive.unclipped_depth);
385384

386385
match primitive.polygon_mode {
387386
wgt::PolygonMode::Fill => {}

0 commit comments

Comments
 (0)