fix: Missing struct field

There was no instruction on the field to add to State.

It can be easily found, but it's better if in the tutorial
pull/431/head
erwanvivien 1 year ago committed by GitHub
parent 8c4d2b5871
commit a325686cdb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -117,9 +117,20 @@ pub enum CompareFunction {
Don't forget to store the `depth_texture` in `State`.
```rust
Self {
// ...
depth_texture,
struct State {
// ...
depth_texture: Texture,
// ...
}
async fn new(window: &Window) -> Self {
// ...
Self {
// ...
depth_texture,
// ...
}
}
```

Loading…
Cancel
Save