Skip to content

Add texture_depth_multisampled_2d - #1793

Merged
kvark merged 1 commit into
gpuweb:mainfrom
kvark:depth-aa
Jul 20, 2021
Merged

kvark merged 1 commit into
gpuweb:mainfrom
kvark:depth-aa

Conversation

@kvark

@kvark kvark commented Jun 2, 2021 •

Copy link
Copy Markdown
Contributor

Closes #1924
Fills the gap of #1198 (comment)

If we decide that depth-formatted textures can only be bound as "depth" sample type (so that we don't introduce any overhead for "float" sample types), then we need a way for the shader to read MSAA depth data (in order to resolve it). texture_depth_multisampled_2d is a bit weird in this sense, since it can't be comparison-sampled.

The group decided to proceed with this on the call today.

Consider this a strawman approach!


Preview | Diff

@github-actions

github-actions Bot commented Jun 2, 2021

Copy link
Copy Markdown
Contributor

Previews, as seen when this build job started (4c5f06f):
WebGPU | IDL
WGSL
Explainer

@kvark
kvark merged commit 1923718 into gpuweb:main Jul 20, 2021
@kvark
kvark deleted the depth-aa branch July 20, 2021 18:38
ben-clayton pushed a commit to ben-clayton/gpuweb that referenced this pull request Sep 6, 2022
…web#1793)

This PR adds texture,device_mismatch test in writeTexture.spec.ts
file in order to ensure that writeTexture function cannot be called
with a texture created from another device.

Issue: gpuweb#1692
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.

Reading from MSAA depth textures

3 participants