mirror of
https://github.com/sotrh/learn-wgpu.git
synced 2024-11-11 19:10:34 +00:00
fixes #333
This commit is contained in:
parent
f942f350c9
commit
3541cdb76b
@ -536,8 +536,6 @@ Notice that we're using `to_rgba8()` instead of `as_rgba8()`. PNGs work fine wit
|
||||
|
||||
</div>
|
||||
|
||||
Note that we're returning a `CommandBuffer` with our texture. This means we can load multiple textures at the same time, and then submit all their command buffers at once.
|
||||
|
||||
We need to import `texture.rs` as a module, so somewhere at the top of `main.rs` add the following.
|
||||
|
||||
```rust
|
||||
|
Loading…
Reference in New Issue
Block a user