bevy_pipelines_ready

Crates.iobevy_pipelines_ready
lib.rsbevy_pipelines_ready
version0.6.0
created_at2023-10-05 01:43:17.17112+00
updated_at2025-04-24 21:56:13.357496+00
descriptionBevy plugin for tracking render pipeline status.
homepagehttps://github.com/rparrett/bevy_pipelines_ready
repositoryhttps://github.com/rparrett/bevy_pipelines_ready
max_upload_size
id993494
size126,560
Rob Parrett (rparrett)

documentation

https://docs.rs/bevy_pipelines_ready

README

bevy_pipelines_ready

crates.io docs Bevy tracking

A tiny Bevy plugin that counts the number of render pipelines that are ready and makes that data available as a resource in the main world.

This is useful for creating a nice loading experience for your Bevy app, especially on the web where execution is single-threaded and pipeline building is disruptive.

Usage

See examples/states.rs.

WebGL2 and WebGPU

Build

# WebGL
cargo build --target wasm32-unknown-unknown --example "states" --features="webgl2"

# WebGPU
cargo build --target wasm32-unknown-unknown --example "states" --features="webgpu"

Bindgen

mkdir -p examples/wasm/target
wget https://raw.githubusercontent.com/bevyengine/bevy/refs/tags/v0.15.0/examples/wasm/index.html -O examples/wasm/index.html
wasm-bindgen --out-dir examples/wasm/target --out-name wasm_example --target web target/wasm32-unknown-unknown/debug/examples/states.wasm

Serve

basic-http-server examples/wasm/

Compatibility

bevy_pipelines_ready bevy
0.6 0.16
0.5 0.15
0.4 0.14
0.3 0.13
0.2 0.12
0.1 0.11

Contributing

Please feel free to open a PR.

Commit count: 25

cargo fmt