StratoSDK is a framework with a declarative approach similar to Flutter/React, written and designed entirely for Rust.
| 1 | pub mod frame_capture; |
| 2 | mod renderer; |
| 3 | mod renderer_manager; |
| 4 | |
| 5 | pub use renderer_manager::RendererManager; |
| 6 | |
| 7 | /// Returns `true` if the given metal Device corresponds to the low power/integrated GPU. |
| 8 | /// |
| 9 | /// In dual GPU Macs, this is `false` for the discrete high-performance GPU. |
| 10 | #[cfg_attr(wgpu, allow(dead_code))] |
| 11 | pub fn is_integrated_gpu(device: &metal::Device) -> bool { |
| 12 | device.is_low_power() && !device.is_removable() |
| 13 | } |
| 14 |