pub fn run_openxr_smoke(
options: OpenXrSmokeOptions,
shutdown: impl Fn() -> bool,
) -> Result<OpenXrSmokeResult, OpenXrRuntimeError>Expand description
Initializes and runs the built-in OpenXR smoke application.
shutdown is polled once per outer loop iteration. Returning true yields a
successful OpenXrSmokeExitReason::Shutdown. The function owns runtime/UI
resources until the loop exits.
§Errors
Returns any OpenXR, Vulkan, swapchain, action, rendering, or submission error encountered during initialization or the loop.
§Examples
use ailloli_ui_openxr::{run_openxr_smoke, OpenXrSmokeOptions};
let result = run_openxr_smoke(OpenXrSmokeOptions::default(), || false)?;
println!("{:?}", result.exit_reason);