(&self, app: &mut App)
| 23 | |
| 24 | impl Plugin for BevyGpuComputePlugin { |
| 25 | fn build(&self, app: &mut App) { |
| 26 | app.init_resource::<RamLimit>() |
| 27 | .init_state::<BevyGpuComputeState>(); |
| 28 | if self.with_default_schedule { |
| 29 | app.add_systems(Startup, spawn_fallback_camera).add_systems( |
| 30 | Update, |
| 31 | (spawn_fallback_camera.run_if(spawn_fallback_camera_runif),) |
| 32 | .chain() |
| 33 | .run_if(in_state(BevyGpuComputeState::Running)), |
| 34 | ); |
| 35 | } else { |
| 36 | app.add_systems( |
| 37 | Update, |
| 38 | spawn_fallback_camera |
| 39 | .run_if(spawn_fallback_camera_runif) |
| 40 | .run_if(in_state(BevyGpuComputeState::Running)), |
| 41 | ); |
| 42 | } |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | impl Default for BevyGpuComputePlugin { |
nothing calls this directly
no outgoing calls
no test coverage detected