-
Notifications
You must be signed in to change notification settings - Fork 999
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
Validation error with Depth buffers #384
Comments
The depth textures only have
|
Thank you for the report! Is this on wgpu-0.4 or master? |
This is wgpu 0.4. I’ll try and narrow it down to the line of code! I could also try master if the API hasn’t changed. |
So the offending line is:
On a depth buffer. I am creating the buffer and copying to it in the same frame, so this might be the issue, though I do this for color textures without problem. |
I can see that the code would use the full aspects of the texture, so in your case it should be correct: wgpu/wgpu-core/src/command/transfer.rs Line 140 in 469c086
Is there any way I could reproduce this? Perhaps, you could share a branch of code? |
Ok, I reproduced it pretty easily in You have to run |
You can grep for |
🙏 |
384: Add include_spirv macro r=cwfitzgerald,rukai a=kvark Depends on gfx-rs#729 Makes out shader loading in the examples a bit tidier. Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
I'm getting the following validation error when using depth writing/testing in certain cases:
I don't know if I'm doing anything wrong, since things work as expected.. the relevant part of my pipeline config looks like this:
The text was updated successfully, but these errors were encountered: