Open ztlwk opened 1 month ago
See https://github.com/rust-windowing/winit/issues/3699. Cc @MarijnS95.
Seen this while reading #3699, and I'm more inclined to pursue that issue. For one, this issue doesn't describe a problem statement, so it's hard to understand what kind of issue or design problem the author intends this proposed design for.
Maybe this is somewhat loosely related to https://github.com/rust-windowing/winit/issues/2337?
I think the goal of OP is that we somehow avoid having to re-create RawWindowHandle
.
You indicated in the last meeting that this is possible, because that's how it was in the past, could you clarify the details here?
So my understanding is that Window
survives just fine.
RawWindowHandle
becomes invalid but not unsafe, e.g. rendering just goes into a black hole but doesn't segfault.
How much exactly of the graphics context is invalidated, how about GPU buffers?
Is it possible for Winit to drape over this fact and "patch" the RawWindowHandle
so we can pretend everything's continuing to work? So just notifying the user that the app is now in the background and no rendering will be visible and after resumption everything continues to work just fine.
Sorry for the vague description, I have edited it to make it more clear.
Description
Motivation
This issue aims for the following topics:
I am unsure about whether winit should absolutely do some changes for them, but this issue is opened for the discusssions about the possible solutions and winit api design.
Proposed Change
Relevant platforms
Android