Skip to content

Depth copies between depth32float and depth32float-stencil8 #2328

Closed

Description

@kainino0x

The underlying APIs don't allow e.g. copying depth32float-stencil8's depth aspect into depth32float. In native, you can just copy with an intermediate buffer. But in WebGPU that's impossible: copies from buffer into depth32float aren't allowed because we can't validate the depth range (unless a future unrestricted-depth feature is enabled).

We could make such copies possible by implementing them with an internal intermediate buffer.

Originally posted by @kainino0x in #2322 (comment)

Activity

  1. kainino0x commented on Nov 19, 2021

    @kainino0x
    ContributorAuthor

    Tentatively post-V1.

  2. added this to the post-V1 milestone on Nov 19, 2021
  3. kainino0x commented on Nov 20, 2021

    @kainino0x
    ContributorAuthor

    As described now in #2331, such copies could be imitated using a render pass that writes frag_depth.
    I'm going to go ahead and close this because I don't see a need for this right now.

    We can revisit this in the future, as well as other copies that are currently disallowed and would need implementation intervention (to/from depth24unorm/depth24plus, and to depth32float): #652 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions