We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The code uses this variable, but it's not declared
https://sotrh.github.io/learn-wgpu/beginner/tutorial2-surface/#render
The text was updated successfully, but these errors were encountered:
Add this to the fn run() function:
fn run()
let mut surface_configured = false;
It didn't appear in the website though. It was supposed to appear after
let mut state = State::new(&window).await;
Sorry, something went wrong.
Yeap of course I added it to my code, just suggesting a minor improvement to the docs.
Just a note for anyone else stumbling across this like myself, that variable needs to be set, which I believe should be here:
state.resize(*physical_size); // this line should already exist surface_configured = true;
No branches or pull requests
The code uses this variable, but it's not declared
https://sotrh.github.io/learn-wgpu/beginner/tutorial2-surface/#render
The text was updated successfully, but these errors were encountered: