Remove unused field
This commit is contained in:
parent
d78c12378f
commit
c39fca1567
|
|
@ -1,6 +1,6 @@
|
||||||
use std::error::Error;
|
use std::error::Error;
|
||||||
|
|
||||||
use glam::{uvec2, UVec2};
|
use glam::uvec2;
|
||||||
use winit::{
|
use winit::{
|
||||||
event::{Event, WindowEvent},
|
event::{Event, WindowEvent},
|
||||||
event_loop::EventLoop,
|
event_loop::EventLoop,
|
||||||
|
|
@ -8,7 +8,6 @@ use winit::{
|
||||||
};
|
};
|
||||||
|
|
||||||
struct GameState {
|
struct GameState {
|
||||||
size: UVec2,
|
|
||||||
last: wgpu::TextureView,
|
last: wgpu::TextureView,
|
||||||
next: wgpu::TextureView,
|
next: wgpu::TextureView,
|
||||||
}
|
}
|
||||||
|
|
@ -194,7 +193,7 @@ fn main() {
|
||||||
drop(render_pass);
|
drop(render_pass);
|
||||||
queue.submit(std::iter::once(encoder.finish()));
|
queue.submit(std::iter::once(encoder.finish()));
|
||||||
|
|
||||||
state = Some(GameState { size, last, next });
|
state = Some(GameState { last, next });
|
||||||
}
|
}
|
||||||
WindowEvent::RedrawRequested => {
|
WindowEvent::RedrawRequested => {
|
||||||
let Some(state) = &mut state else {
|
let Some(state) = &mut state else {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user