more required components and other stuff
Signed-off-by: Schmarni <marnistromer@gmail.com>
This commit is contained in:
@@ -22,7 +22,6 @@ fn sync_sets(session: Res<OxrSession>, mut events: EventReader<OxrSyncActionSet>
|
||||
.map(|v| &v.0)
|
||||
.map(openxr::ActiveActionSet::new)
|
||||
.collect::<Vec<_>>();
|
||||
|
||||
if sets.is_empty() {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -29,6 +29,10 @@ impl OxrExtensions {
|
||||
self.0.ext_hand_tracking = false;
|
||||
self
|
||||
}
|
||||
pub fn enable_extx_overlay(&mut self) -> &mut Self {
|
||||
self.0.extx_overlay = true;
|
||||
self
|
||||
}
|
||||
/// returns true if all of the extensions enabled are also available in `available_exts`
|
||||
pub fn is_available(&self, available_exts: &OxrExtensions) -> bool {
|
||||
self.clone() & available_exts.clone() == *self
|
||||
|
||||
Reference in New Issue
Block a user