Sitelet https://github.com/gpuweb/gpuweb/issues/4269
Skip to content

ErrorScopes are not useful for CommandEncoder methods #4269

Description

@kdashg

The spec today says that if e.g. copyTextureToTexture identifies a validation issue, the encoder merely becomes invalid, and only later a single validation error is generated in CommandEncoder.finish().

This means pushErrorScope/popErrorScope are unable to isolate or identify which call caused the error to occur.

I believe that calls should generate validation errors (for use with error scopes) normally, instead of being deferred. (but giving details about what caused the encoder to go invalid should totally also be an error that happens at CommandEncoder.finish() too)

Activity

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

    apiWebGPU APImoved-m0-to-m1(TEMPORARY) items moved from M0 to M1 while trying to make M0 = requirements for CR

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions