2021-08-13 20:01:28 +07:00
|
|
|
## `wgpu` integration
|
2020-02-21 15:12:27 +01:00
|
|
|
|
2021-08-13 20:59:42 +07:00
|
|
|
A demonstration of how to integrate Iced in an existing [`wgpu`] application.
|
2020-02-21 15:12:27 +01:00
|
|
|
|
|
|
|
|
The __[`main`]__ file contains all the code of the example.
|
|
|
|
|
|
|
|
|
|
<div align="center">
|
2023-09-07 05:05:43 +02:00
|
|
|
<img src="https://iced.rs/examples/integration.gif">
|
2020-02-21 15:12:27 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
You can run it with `cargo run`:
|
|
|
|
|
```
|
2024-05-07 15:50:18 +02:00
|
|
|
cargo run --package integration
|
2020-02-21 15:12:27 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
[`main`]: src/main.rs
|
2021-08-13 20:01:28 +07:00
|
|
|
[`wgpu`]: https://github.com/gfx-rs/wgpu
|