Skip to content

Commit 97e9dc4

Browse files
committed
Update README.md
1 parent faafed4 commit 97e9dc4

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

README.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ First, add `bevy-rust-gpu` to your `Cargo.toml`:
4040
bevy-rust-gpu = { git = "https://github.com/Bevy-Rust-GPU/bevy-rust-gpu", tag = "v0.3.0" }
4141
```
4242

43-
4443
Next, implement a `Material` type to describe your material's bind group layout and pipeline specialization:
4544

4645
```rust
@@ -58,7 +57,6 @@ struct MyRustGpuMaterial {
5857
impl Material for MyRustGpuMaterial {}
5958
```
6059

61-
6260
Then, implement `RustGpuMaterial` for your `Material` type.
6361

6462
```rust
@@ -88,7 +86,6 @@ impl RustGpuMaterial for MyRustGpuMaterial {
8886

8987
(See [`bevy_pbr_rust.rs`](https://github.com/Bevy-Rust-GPU/bevy-rust-gpu/blob/master/src/bevy_pbr_rust.rs) for the [`bevy-pbr-rust`](https://github.com/Bevy-Rust-GPU/bevy-pbr-rust)-backed `StandardMaterial` reference implementation.)
9088

91-
9289
Next, add `RustGpuPlugin` to your bevy app to configure the backend.
9390

9491
```rust
@@ -97,7 +94,6 @@ Next, add `RustGpuPlugin` to your bevy app to configure the backend.
9794
app.add_plugins(DefaultPlugins);
9895
```
9996

100-
10197
For each `RustGpuMaterial` implementor, add a `RustGpuMaterialPlugin::<M>` to your app to setup backend rendering machinery.
10298
This will also configure hot-reloading and hot-rebuilding if the corresponding features are enabled.
10399

@@ -106,13 +102,11 @@ This will also configure hot-reloading and hot-rebuilding if the corresponding f
106102

107103
```
108104

109-
110105
If using hot-rebuilding, tell the material where to export its entry points:
111106
```rust
112107
RustGpu::<ExampleMaterial>::export_to(ENTRY_POINTS_PATH);
113108
```
114109

115-
116110
Finally, load your shader, and add it to a material:
117111

118112
```rust

0 commit comments

Comments
 (0)