You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Repo is simple: git checkout andreas/wgpu-0.18, cargo rerun, open dicom, and resize the window:
I fail to repro on main
[2023-11-21T16:43:22Z ERROR re_renderer::error_tracker] WGPU error tick_nr=6426 description=Validation Error
Caused by:
In a RenderPass
note: encoder = `encoder`
In a set_viewport command
Viewport has invalid rect Rect { x: 1660.2888, y: 208.80003, w: 711.71136, h: 294.69302 }; origin and/or size is less than or equal to 0, and/or is not contained in the render target Extent3d { width: 2372, height: 1604, depth_or_array_layers: 1 }
[2023-11-21T16:43:22Z ERROR wgpu_core::present] No work has been submitted for this frame
We should
A) catch this error before wgpu does
B) prevent this error from happening
The text was updated successfully, but these errors were encountered:
#3604)
* Fixesrerun-io/rerun#4297
* tested against a very hasty and incomplete port of egui/trunk, found
[here](https://github.com/rerun-io/rerun/tree/andreas/experimental-egui-trunk)
In rare cases in can happen that the viewport returned by
`PaintCallbackInfo` is outside the bounds of the screen.
for at least [wgpu/webgpu in
particular](https://www.w3.org/TR/webgpu/#dom-gpurenderpassencoder-setviewport)
this is invalid usage, other backends might be affected as well.
Since this happened due to a float rounding error (in one repro case I
had I got (width==1126.5625) + (offset=715.4376) = 1842.0001 for a
resolution of 1842) I decided to do away with fractional values on the
viewport alltogether. They _technically_ make sense since a viewport is
only specifying the NDC to pixel coordinate conversion, but practically
this may lead to surprising sub-sampling issues.
---------
Co-authored-by: Emil Ernerfeldt <[email protected]>
Repo is simple:
git checkout andreas/wgpu-0.18
,cargo rerun
, open dicom, and resize the window:I fail to repro on
main
We should
A) catch this error before wgpu does
B) prevent this error from happening
The text was updated successfully, but these errors were encountered: