You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An easy way to run wgpu compute shaders within a bevy app.
8
8
9
-
This is a fork of [Kjolnyr/bevy_app_compute](https://github.com/Kjolnyr/bevy_app_compute), which is no longer being maintained. This project's goal is to keep maintaining `bevy_app_compute` while keeping the overall architecture of it and adding improvements. Issues + PRs are welcome.
10
-
11
9
## Getting Started
12
10
13
11
Add the following line to your `Cargo.toml`
14
12
15
13
```toml
16
14
[dependencies]
17
-
bevy_easy_compute = "0.15"
15
+
bevy_app_compute = "0.16"
18
16
```
19
17
20
18
## Usage
21
19
22
20
### Setup
23
21
24
-
Declare your shaders in structs implementing `ComputeShader`. The `shader()` fn should point to your shader source code.
25
-
You need to derive `TypePath` as well:
22
+
Declare your shaders in structs implementing `ComputeShader`. The `shader()` fn
23
+
should point to your shader source code. You need to derive `TypePath` as well:
26
24
27
25
```rust
28
26
#[derive(TypePath)]
@@ -35,7 +33,8 @@ impl ComputeShader for SimpleShader {
35
33
}
36
34
```
37
35
38
-
Next, declare a struct implementing `ComputeWorker` to declare the bindings and the logic of your worker:
36
+
Next, declare a struct implementing `ComputeWorker` to declare the bindings and
0 commit comments