Skip to content

Contradictions in the validation rules of copyTextureToTexture() with depth stencil formats #1464

Closed

Description

@Jiawei-Shao

I find there are two contradictions among the validation rules of copyTextureToTexture() and "Depth/stencil formats". I think we should update the validation rules of copyTextureToTexture() to cover these special rules on depth/stencil formats.

The validation rules of copyTextureToTexture() says

  • source.texture.format is equal to destination. texture.format".
  • If source.texture.format is a depth-stencil format: source.aspect and destination.aspect must both refer to all aspects of source.texture.format and destination.texture.format, respectively.

While "Depth/stencil formats" says:
Copies between depth textures can only happen within the following sets of formats:

  • stencil8, depth24plus-stencil8 (stencil component), r8uint
  • depth16unorm, r16uint
  • depth24plus, depth24plus-stencil8 (depth aspect)

From #1692:

The "within the following sets of formats" section is wrong.


From #1479:

  • Consider explicitly documenting that T2T copies with matching format is always valid (all formats, not just D/S)

Activity

  1. kainino0x commented on Feb 24, 2021

    @kainino0x
    Contributor

    Good call, I think the latest resolution was T2T copies must (at least currently) copy all aspects, but T2B/B2T may copy individual aspects. Would have to dig through the issue history to make sure but I'm pretty sure about that.

  2. added this to the V1.0 milestone on Sep 2, 2021
  3. kainino0x commented on Sep 10, 2021

    @kainino0x
    Contributor

    Merged #1692 into this issue. The section that needs fixing is the "within the following sets of formats" section.

  4. kainino0x commented on Sep 10, 2021

    @kainino0x
    Contributor

    From #1479: "Consider explicitly documenting that T2T copies with matching format is always valid (all formats, not just D/S)"

  5. added 2 commits that reference this issue on Nov 19, 2021
    634d7d0
    dd68d41
  6. added a commit that references this issue on Nov 23, 2021
    84dd9a0
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

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions