Investigate lowering limits that graphics backend needs to provide #908
Labels
good first issue
Good for newcomers
topic: display
Displaying Fornjot models
type: development
Work to ease development or maintenance, without direct effect on features or bugs
Milestone
To initialize wgpu-rs, we need to pass it a set of limits that we require the hardware to fulfill (see
wgpu::Limits
).We're currently using
wgpu::Limits::default()
, which is only guaranteed to work on modern backends. Since web support is a goal, and WebGPU seems unlikely to be widely available soon (I might be wrong), it might be required to usewgpu::Limits::downlevel_webgl2_defaults()
instead, which be guaranteed to work with WebGL.When I try to do that, however, I'm getting this error:
It would be good to investigate whether the higher limit is actually required, and how to lower it.
The limits are requested here: https://github.com/hannobraun/Fornjot/blob/0a6f2598b79a24bb431f5abb89cd0617c0d6245a/crates/fj-viewer/src/graphics/renderer.rs#L151
I don't know where that error originates, but I think we're not using
Device::create_texture
anywhere in our own code, so it's probably used by egui.Labeling as https://github.com/hannobraun/Fornjot/labels/good%20first%20issue, since this problem is limited in scope (graphics code) and doesn't require much knowledge of Fornjot itself. Experience with wgpu-rs and possibly egui would be beneficial, of course.
The text was updated successfully, but these errors were encountered: