Expand description
🛡️ V-Shield Platform Detection
Detección automática de plataforma con config defaults.
§Plataformas soportadas
| Plataforma | target_os | Sync | Graphics |
|---|---|---|---|
| Linux | linux | std::sync | X11/Wayland |
| Windows | windows | std::sync | DirectX |
| macOS | macos | std::sync | Metal |
| Android | android | std::sync | EGL/OpenGL ES |
| WASM | wasm32 | wasm_sync | WebGL |
| iOS | ios | std::sync | Metal |
§Ejemplo
use v_shield::platform::{Platform, current_platform};
let p = current_platform();
println!("Running on: {:?}", p);
assert!(p.is_desktop() || p.is_mobile());Structs§
- Platform
Config - Configuración defaults por plataforma
Enums§
- Platform
- Plataforma detectada
Functions§
- current_
platform - Detecta la plataforma actual en compile-time