add documentation and satisfy clippy

This commit is contained in:
awtterpip
2024-03-10 20:14:46 -05:00
parent 91eb263b4f
commit db3539d975
4 changed files with 25 additions and 46 deletions

View File

@@ -49,15 +49,15 @@ pub fn handle_xr_events(
}
}
/// Event sent to backends to create an XR session
/// Event sent to backends to create an XR session. Should only be called after [`XrInstanceCreated`] is recieved.
#[derive(Event, Clone, Copy, Default)]
pub struct CreateXrSession;
/// Event sent to backends to begin an XR session
/// Event sent to backends to begin an XR session. Should only be called after [`XrSessionState::Ready`] is recieved.
#[derive(Event, Clone, Copy, Default)]
pub struct BeginXrSession;
/// Event sent to backends to end an XR session.
/// Event sent to backends to end an XR session. Should only be called after [`XrSessionState::Running`] is recieved.
#[derive(Event, Clone, Copy, Default)]
pub struct EndXrSession;