MCPcopy Create free account
hub / github.com/Sheldonfrith/bevy_gpu_compute / build

Method build

bevy_gpu_compute/src/plugin.rs:25–43  ·  view source on GitHub ↗
(&self, app: &mut App)

Source from the content-addressed store, hash-verified

23
24impl 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
46impl Default for BevyGpuComputePlugin {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected