# Objective - Fixes https://github.com/bevyengine/bevy/issues/15389. - Add documentation for RawHandleWrapper::_window field since It's needed to drop the window at the correct time. ## Solution - Added documentation to RawHandleWrapper::_window field as same as WindowWrapper documentation. ## Testing - No testing needed since it is documentation. ---
This commit is contained in:
parent
7f9eae2c87
commit
2556405feb
@ -50,6 +50,10 @@ impl<W: 'static> Deref for WindowWrapper<W> {
|
|||||||
/// thread-safe.
|
/// thread-safe.
|
||||||
#[derive(Debug, Clone, Component)]
|
#[derive(Debug, Clone, Component)]
|
||||||
pub struct RawHandleWrapper {
|
pub struct RawHandleWrapper {
|
||||||
|
/// A shared reference to the window.
|
||||||
|
/// This allows us to extend the lifetime of the window,
|
||||||
|
/// so it doesn’t get eagerly dropped while a pipelined
|
||||||
|
/// renderer still has frames in flight that need to draw to it.
|
||||||
_window: Arc<dyn Any + Send + Sync>,
|
_window: Arc<dyn Any + Send + Sync>,
|
||||||
/// Raw handle to a window.
|
/// Raw handle to a window.
|
||||||
window_handle: RawWindowHandle,
|
window_handle: RawWindowHandle,
|
||||||
|
Loading…
Reference in New Issue
Block a user