Skip to content

Commit 870f3e8

Browse files
Add internal_ambiguities dev example
1 parent 69f38e5 commit 870f3e8

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -524,6 +524,10 @@ path = "examples/shader/compute_shader_game_of_life.rs"
524524
name = "bevymark"
525525
path = "examples/tools/bevymark.rs"
526526

527+
[[example]]
528+
name = "internal_ambiguities"
529+
path = "examples/tools/internal_ambiguities.rs"
530+
527531
[[example]]
528532
name = "scene_viewer"
529533
path = "examples/tools/scene_viewer.rs"

examples/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ git checkout v0.4.0
6767
- [WASM](#wasm)
6868
- [Setup](#setup-2)
6969
- [Build & Run](#build--run-2)
70+
- [Loading Assets](#loading-assets)
7071
- [Stress Tests](#stress-tests)
7172

7273
# The Bare Minimum
@@ -258,6 +259,7 @@ Example | File | Description
258259
Example | File | Description
259260
--- | --- | ---
260261
`bevymark` | [`tools/bevymark.rs`](./tools/bevymark.rs) | A heavy sprite rendering workload to benchmark your system with Bevy
262+
`internal_ambiguities` | [`tools/internal_ambiguities.rs`](./tools/internal_ambiguities.rs) | Detect and report any Bevy-internal system order ambiguities
261263
`scene_viewer` | [`tools/scene_viewer.rs`](./tools/scene_viewer.rs) | A simple way to view glTF models with Bevy. Just run `cargo run --release --example scene_viewer -- /path/to/model.gltf#Scene0`, replacing the path as appropriate. With no arguments it will load the FieldHelmet glTF model from the repository assets subdirectory.
262264

263265
## Transforms
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
//! Reports any Bevy-internal system-order ambiguities
2+
//! This is primarily useful for engine development
3+
4+
use bevy::prelude::*;
5+
6+
fn main() {
7+
App::new()
8+
.add_plugins(DefaultPlugins)
9+
.insert_resource(ReportExecutionOrderAmbiguities::ReportInternal)
10+
.run()
11+
}

0 commit comments

Comments
 (0)