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">
|
|
|
|
|
<a href="https://gfycat.com/nicemediocrekodiakbear">
|
|
|
|
|
<img src="https://thumbs.gfycat.com/NiceMediocreKodiakbear-small.gif">
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
You can run it with `cargo run`:
|
|
|
|
|
```
|
|
|
|
|
cargo run --package integration
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
[`main`]: src/main.rs
|
2021-08-13 20:01:28 +07:00
|
|
|
[`wgpu`]: https://github.com/gfx-rs/wgpu
|