Skip to content

Conversation

@teoxoy
Copy link
Member

@teoxoy teoxoy commented Jan 19, 2024

Fixes #5097.

Copy link
Member

@cwfitzgerald cwfitzgerald left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's land this as it's, but could we get a test which makes a texture view of every type for each texture - for that matter, why wasn't this caught by a clear test for the stencil aspect?

@teoxoy
Copy link
Member Author

teoxoy commented Jan 19, 2024

for that matter, why wasn't this caught by a clear test for the stencil aspect?

I think that's because we clear textures with depth/stencil formats with render passes where we use a different format.

I added a test for depth only and stencil only view creation.

@ErichDonGubler
Copy link
Member

CI for Windows failed, but only on artifact upload, and not tests running. I think this is good to merge, then!

@ErichDonGubler ErichDonGubler enabled auto-merge (squash) January 19, 2024 21:41
@ErichDonGubler ErichDonGubler merged commit f9509bc into trunk Jan 19, 2024
@ErichDonGubler ErichDonGubler deleted the fix-d3d12-stencil-plane branch January 19, 2024 21:42
@cwfitzgerald cwfitzgerald added the PR: needs back-porting PR with a fix that needs to land on crates label Jan 21, 2024
cwfitzgerald pushed a commit to cwfitzgerald/wgpu that referenced this pull request Jan 21, 2024
* [d3d12] use plane 1 for stencil only views

* add test

* skip stencil only view creation on WebGL
@cwfitzgerald cwfitzgerald removed the PR: needs back-porting PR with a fix that needs to land on crates label Jan 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

d3d12: Device loss due to invalid usage of CreateShaderResourceView

4 participants