fix(bevy_mod_openxr/android): fix fb_passthrough and rename feature

Signed-off-by: Schmarni <marnistromer@gmail.com>
This commit is contained in:
Schmarni
2025-10-19 16:52:44 +02:00
parent 977fe029ad
commit 258bd0448d
5 changed files with 22 additions and 12 deletions

1
Cargo.lock generated
View File

@@ -1066,6 +1066,7 @@ dependencies = [
name = "bevy_openxr_android"
version = "0.3.0"
dependencies = [
"bevy",
"bevy_mod_openxr",
"bevy_mod_xr",
"bevy_xr_utils",

View File

@@ -11,7 +11,7 @@ keywords = ["gamedev", "bevy", "Xr", "Vr", "OpenXR"]
default = ["vulkan"]
vulkan = ["dep:ash", "dep:android_system_properties"]
d3d12 = ["wgpu/dx12", "wgpu-hal/dx12", "dep:winapi"]
passthrough = []
fb_passthrough = []
reflect = ["dep:bevy_reflect"]
window_support = ["dep:bevy_winit", "dep:bevy_window"]

View File

@@ -7,17 +7,20 @@ publish = false
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
bevy_mod_openxr.workspace = true
bevy_mod_openxr = { workspace = true, features = [
"window_support",
"fb_passthrough",
] }
bevy_xr_utils.workspace = true
bevy_mod_xr.workspace = true
# bevy = { workspace = true, default-features = false, features = [
# # Bevy 0.15 made GameActivity the default which breaks Quest builds
# # To use NativeActivity instead of GameActivity all of the features have to be listed manually
# "android-native-activity",
# "bevy_window",
# "multi_threaded",
# "tonemapping_luts",
# ] }
bevy = { workspace = true, features = [
# Bevy 0.15 made GameActivity the default which breaks Quest builds
# To use NativeActivity instead of GameActivity all of the features have to be listed manually
"android-native-activity",
"bevy_window",
"multi_threaded",
"tonemapping_luts",
] }
[build-dependencies]
reqwest = { version = "0.12", features = ["blocking"] }

View File

@@ -1,3 +1,9 @@
use bevy_app::App;
use bevy_app::Plugin;
use bevy_ecs::schedule::IntoScheduleConfigs as _;
use bevy_ecs::schedule::common_conditions::resource_added;
use bevy_ecs::system::Res;
use bevy_ecs::world::World;
use bevy_log::error;
use bevy_log::info;
use bevy_render::Render;
@@ -35,7 +41,7 @@ impl Plugin for OxrFbPassthroughPlugin {
app.sub_app_mut(RenderApp).add_systems(
Render,
insert_passthrough
.in_set(RenderSet::PrepareAssets)
.in_set(RenderSystems::PrepareAssets)
.run_if(resource_added::<OxrSession>),
);
} else {

View File

@@ -1,4 +1,4 @@
pub mod handtracking;
#[cfg(feature = "passthrough")]
#[cfg(feature = "fb_passthrough")]
pub mod fb_passthrough;
pub mod overlay;