Skip to content

Commit ea30307

Browse files
committed
Update README.md
1 parent 0d17f65 commit ea30307

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,12 @@ so the `.spv` file must be compiled at least once prior to app startup in order
152152

153153
### `hot-rebuild`
154154

155-
Adds the `EntryPointExport` resource, which can be used to retrieve an `ExportHandle` corresponding to a JSON output file.
156-
When passed to a `RustGpu` material, active entrypoints to be aggregated and exported to the corresponding file on change.
155+
Enables hot-rebuilding support.
156+
157+
`RustGpu` gains a new `export_to` function, which will register it to export entry points to the provided path.
157158

158159
This can be used in concert with the `hot-reload` feature, [`rust-gpu-builder`](https://github.com/Bevy-Rust-GPU/rust-gpu-builder)'s file watching functionality,
159-
and [`permutate-macro`](https://github.com/Bevy-Rust-GPU/permutate-macro)'s static permutation generation to drive a hot-rebuild workflow:
160+
and [`permutate-macro`](https://github.com/Bevy-Rust-GPU/permutate-macro)'s static permutation generation to drive a hot-rebuild workflow on par with bevy's WGSL user experience:
160161

161162
* The bevy app loads a `RustGpu` material, tries to specialize it, and exports the set of required entry points to `entry_points.json`
162163
* [`rust-gpu-builder`](https://github.com/Bevy-Rust-GPU/rust-gpu-builder) picks up the change to `entry_points.json` and triggers a recompile

0 commit comments

Comments
 (0)