fix(webgpu): set_unclipped_depth (#7841)

This commit is contained in:
atlv authored and GitHub committed 2025-06-24 15:12:47 +02:00
1 parent 440b33f4c6
commit 0c05dbf5c9
2 files changed
+5 -2

No files matched your search

+4
View File
@@ -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)
+1 -2
View File
@@ -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 => {}