Skip to content
New issue

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

Cannot access diffuse_texture.view while working through the beginner tutorial on textures #120

Closed
corjohnson opened this issue Nov 9, 2020 · 6 comments

Comments

@corjohnson
Copy link

https://sotrh.github.io/learn-wgpu/beginner/tutorial5-textures/#loading-an-image-from-a-file

Basically just following along but I'm getting an error while working through the subsections. I just noticed it when I was at the shader section, but in the tutorial steps the variable diffuse_texture seems to be used for two separate things.

No matter if diffuse_texture is a Texture or DynamicImage I can't seem to access the view or sampler fields.

Not sure if I'm just missing something obvious here, but wanted to bring it up!

@corjohnson
Copy link
Author

Hmm seems like I just got a bit confused; added the anyhow crate; and now it works after doing the cleanup steps.

@sotrh
Copy link
Owner

sotrh commented Nov 9, 2020

I might need to do a once over on that particular tutorial. I just have the code for the completed version after clean up. I probably should have the code for the version before the cleanup.

@sotrh sotrh mentioned this issue Nov 10, 2020
7 tasks
@kanerogers
Copy link
Contributor

@corjohnson I've done a cleanup over in #124 - could you check to see if this fixes the problems you ran into?

@corjohnson
Copy link
Author

I think this should; seems like the biggest problem I had was the anyhow crate 😄

@kanerogers
Copy link
Contributor

kanerogers commented Nov 21, 2020 via email

@sotrh
Copy link
Owner

sotrh commented Nov 24, 2020

Should be fixed in #126

@sotrh sotrh closed this as completed Nov 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants