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

Support for grayscale textures #73

Closed
almarklein opened this issue Mar 28, 2020 · 4 comments · Fixed by #89
Closed

Support for grayscale textures #73

almarklein opened this issue Mar 28, 2020 · 4 comments · Fixed by #89
Labels
bug Something isn't working

Comments

@almarklein
Copy link
Collaborator

Currently, textures of format r8unorm and r8uint work, but r16sint, r32sint and r32float fail. I've not yet been able to find out why.

@almarklein almarklein added the bug Something isn't working label Mar 28, 2020
@almarklein almarklein mentioned this issue Mar 28, 2020
34 tasks
@Korijn
Copy link
Collaborator

Korijn commented Apr 3, 2020

Are these formats known to work in wgpu-native upstream?

@almarklein
Copy link
Collaborator Author

When I asked last week or so, they responded to not have trouble with them earlier. But then again, it does work with uint8 textures. At the time I did not have the tests to say what exactly worked and what not. Let's wait for their next release and if it then still fails I'll ask for help.

@almarklein
Copy link
Collaborator Author

gfx-rs/wgpu#575

@almarklein
Copy link
Collaborator Author

I tweaked a Rust example to use R16Sint and R32Sint textures and that seemed to work. Should compare that example's wgpu calls, and compare the SpirV that comes off that fragment shader with our SpirV ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants