-
Notifications
You must be signed in to change notification settings - Fork 186
How do I sample a depth texture? [Linux Mint] #162
Comments
Before I look at your full source, please check out our |
Nothing strikes me particularly worrying about the code. I would take a RenderDoc capture and look at the contents of the targets as well as the state. If you have a full repro case (if I understand correctly, you still got some local changes?), I can look at it on my machine as well. |
The local changes are just the shader code I posted in the issue. The version on master should reproduce the issue. I don't have RenderDoc installed currently. I'll see if I can get that working on my machine. |
It's going to take awhile to download. I'll update this tomorrow with my findings |
One problem I found so far - gfx-rs/wgpu#458 |
Another one is gfx-rs/wgpu#459 |
So does that mean I should just wait for the patch, or is there something I can do in the meantime? |
There are some choices:
|
Ok I'm going to close this issue, as it looks like later releases will fix it. I'll check out #wgpu:matrix.org as well. |
I made a few fixes in gfx-rs/wgpu#465, and I'm able to run it without any validation layer errors (by tweaking the shader a bit), and even capture with RenderDoc (by running it from command line for some reason). |
@sotrh found another problem, now on your side. The |
I'm working on my tutorial series, and I'm working on building an example of using the depth buffer. The depth test itself is working fine, but I want to render the texture itself, but the texture is coming up black.
I know this is wrong because I've saved the texture to a file and its mostly white.
You can see the code on my github. https://github.com/sotrh/learn-wgpu/blob/master/code/beginner/tutorial8-depth/src/challenge.rs
Here's the shader code in my local branch.
You can see the master branch version here. https://github.com/sotrh/learn-wgpu/blob/master/code/beginner/tutorial8-depth/src/challenge.frag
The text was updated successfully, but these errors were encountered: