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

Stencil Acts Incorrectly On Some Systems #2380

Closed
metasophiea opened this issue Jan 11, 2022 · 0 comments · Fixed by #2382
Closed

Stencil Acts Incorrectly On Some Systems #2380

metasophiea opened this issue Jan 11, 2022 · 0 comments · Fixed by #2382
Assignees
Labels
area: correctness We're behaving incorrectly type: bug Something isn't working

Comments

@metasophiea
Copy link

Description
I've been having some trouble with stencilling. Things seem to work fine on MacOS, but not so much on Win10 and Ubuntu. The stencil itself works fine, but what's drawn afterwards is muddled somehow. It's almost as if the stencil carries on with subsequent draw calls, denying future calls the ability to draw in previously used space.

Repro steps
I've created a single file program for this which you can find in the wgpu/examples folder of this fork.
You can run the example with "cargo -r --example hello-stencil

Expected vs observed behavior
Here we see three triangles being rendered to the screen
no-stencil
Now a fourth stencilling triangle is added, which works correctly
screenshot
On Ubuntu however, we see the incorrect behaviour
Screenshot 2022-01-11 at 16 01 09

@kvark kvark added area: correctness We're behaving incorrectly type: bug Something isn't working labels Jan 11, 2022
@kvark kvark self-assigned this Jan 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: correctness We're behaving incorrectly type: bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants