Skip to content

Conversation

@Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented Apr 20, 2023

Related issue: -

Description

This PR adds basic support for DepthStencilFormat to WebGPURenderer. The format can be combined with UnsignedInt248Type like with WebGL or additionally FloatType via the depth32float-stencil8 GPU feature.

@Mugen87 Mugen87 added this to the r152 milestone Apr 20, 2023
@Mugen87 Mugen87 marked this pull request as ready for review April 20, 2023 09:14
this.type = GPUBindingType.SampledTexture;
this.visibility = GPUShaderStage.FRAGMENT;

this.aspect = texture.isDepthTexture ? GPUTextureAspect.DepthOnly : GPUTextureAspect.All;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is still an open point. I'm not sure how to setup the depth texture so the depth and stencil aspect are supported. Let's start with depth-only for now.

@Mugen87 Mugen87 merged commit 43915ee into mrdoob:dev Apr 20, 2023
emmanueljl pushed a commit to emmanueljl/three.js that referenced this pull request Apr 28, 2023
@Methuselah96 Methuselah96 mentioned this pull request Apr 28, 2023
38 tasks
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.

1 participant