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

WebGPU: more changes and fixes for stencil support #12452

Merged
merged 1 commit into from
Apr 28, 2022
Merged

WebGPU: more changes and fixes for stencil support #12452

merged 1 commit into from
Apr 28, 2022

Conversation

Popov72
Copy link
Contributor

@Popov72 Popov72 commented Apr 27, 2022

When a texture has both a depth and stencil aspects, only one of these can be used in a texture lookup. So, when creating a texture view, we must choose between depth and stencil.

We currently choose "depth" as it is what the user would most likely want, but we will need to come up with a way to be able to specify "stencil" instead. However, I don't know how we can do that, that would require some annotations in the shader so that we know a texture should be bound with the stencil aspect...

@azure-pipelines
Copy link

Please make sure to tag your PR with "bug", "new feature" or "breaking change" tags.

@azure-pipelines
Copy link

@sebavan sebavan merged commit 32437a2 into BabylonJS:master Apr 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants