Skip to content

WebGPU #185

Closed
Closed

Description

@LeviPesin

Description

WebGPU is a new low-level GPU API to access platforms such as Vulkan, similarly as how WebGL allows to access OpenGL.

Rationale

WebGPU is extremely useful for 3D developers and 3D libraries developers, because it is much faster than WebGL, because it allows low-level GPU access.
It is not enabled in any browser currently by default, but is behind a flag in all major five browsers.

Investigation Roadmap

Draft specification: https://gpuweb.github.io/gpuweb/

No tests in WPT yet: https://wpt.fyi/results/?label=master&label=experimental&aligned&view=subtest&q=webgpu

Activity

  1. added
    investigation-effort-proposal
    on Oct 5, 2022
  2. added this to the milestone on Oct 5, 2022
  3. foolip commented on Oct 5, 2022

    @foolip
    Member

    Thanks @LeviPesin for filing a proposal! This is the first investigation effort proposal we've gotten, and I want to make sure it's clear what to expect. For an investigation effort, we'll ask for a list of tasks to be completed, in order to bring the spec and tests into a good enough shape to do a regular focus area proposal in the coming year.

    Given the state of WebGPU, I suspect you intended to file a regular focus area proposal? If that's the case, we can just edit the description and change the label.

  4. LeviPesin commented on Oct 5, 2022

    @LeviPesin
    Author

    I've filed this as an investigation effect proposal mainly because there are currently no tests and the specification constantly changes. If it is better to change this issue to a focus area proposal I wouldn't oppose.

  5. foolip commented on Oct 6, 2022

    @foolip
    Member

    @LeviPesin I see. What would be the goal of the investigation, is to write a test suite?

  6. LeviPesin commented on Oct 6, 2022

    @LeviPesin
    Author

    Yes, and to finalize the API (it changes constantly).

  7. moved this to Proposed in Interop 2023on Oct 7, 2022
  8. removed this from the milestone on Oct 7, 2022
  9. jensimmons commented on Oct 13, 2022

    @jensimmons
    Contributor

    The work of finalizing the API should happen in the appropriate working group. Neither WPT nor its Interop project are a place to write web standards.

    Perhaps writing tests could be an investigation project. Although, any area that needs tests could be a project.

    What needs investigating? I think this needs a more compelling case. What work is needed and why is Interop 2023 the right place to do that work?

  10. LeviPesin commented on Oct 13, 2022

    @LeviPesin
    Author

    The work of finalizing the API should happen in the appropriate working group. Neither WPT nor its Interop project are a place to write web standards.

    From the investigation efforts description:
    "If this involves any standards work, that work must be done in the appropriate standards group, and those doing the work need to join that group."
    I understood that as a possibilty of a sort of "requesting for help" from Interop. There are quite a many unresolved issues in WebGPU specification which prevent browsers from shipping and developers from having the WebGPU enabled.

    What work is needed and why is Interop 2023 the right place to do that work?

    At least issues in V1 milestone should be fixed and WPT tests should be added. I think that Interop is the right place to do this work because WebGPU is a really needed feature and definitely should appear and become stable in all browsers.

  11. foolip commented on Oct 13, 2022

    @foolip
    Member

    @LeviPesin the interop effort is perhaps best thought of as a planning or project management tool, not a pool of resources that we can deploy to help. The people who would do work on WebGPU testing would most likely be the same people who are currently involved with WebGPU spec or implementation work, like @kainino0x @toji @litherum. When evaluating this proposal we'll go and ask them if they think that tracking their work with a public benchmark helps or not.

    I don't want to presume the conclusion, but I will say that WebGPU would be unlike the investigation efforts in Interop 2022. There, we had existing features that had been shipped long ago, where there was still evidence of web developer pain points, and where it wasn't just a matter of passing existing tests to solve the problem. #201 is another example of a more typical investigation effort, where we need to do some work on our testing infrastructure itself in order to properly test mobile browsers.

    Some mechanism for joint prioritization of new important features that are early in the specification/implementation/test lifecycle would be super valuable, but it's not what we're trying to do with Interop 2023, as our Focus Areas are grounded in test results, and the precedent for Investigation Efforts is existing features and infrastructure.

    All that being said, I think we should handle this with the proposal review process in https://github.com/web-platform-tests/interop/tree/main/2023#after-a-proposal-is-accepted.

  12. Kangz commented on Oct 14, 2022

    @Kangz

    To provide some more data, WebGPU does has a work in progress test suite that's already large, but still incomplete (the API is large). It is being developed at https://github.com/gpuweb/cts and targets being buildable in a way that integrates with WPT if needed by implementers.

    The set of issues @LeviPesin linked is mostly editorial, we are tracking non-editorial V1 issues closely and there are about 10 for the API and 10 for the language (trending down slowly). Editorial issues numbers have been going down significantly thanks to efforts from editors and others.

  13. tbondwilkinson commented on Oct 24, 2022

    @tbondwilkinson

    WebGPU is a P4 for Google's closure library

    "This is probably relevant to goog.graphics?"

  14. LeviPesin commented on Oct 24, 2022

    @LeviPesin
    Author

    I don't think goog.graphics uses WebGPU or even WebGL?

  15. nairnandu commented on Feb 1, 2023

    @nairnandu
    Contributor

    Thank you for proposing WebGPU for inclusion in Interop 2023.

    We wanted to let you know that this proposal was not selected to be part of Interop this year. As mentioned in the comments, WebGPU conformance test suite is being actively developed in the WebGPU community group and is deemed to be outside the scope of Interop 2023 investigation efforts.

    For an overview of our process, see the proposal selection summary. Thank you again for contributing to Interop 2023!

    Posted on behalf of the Interop team.

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

    investigation-effort-proposal

    Type

    No type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions