Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tracking issue to write spec / explainers for native-specific parts of webgpu.h #25

Closed
11 of 12 tasks
Kangz opened this issue Nov 12, 2019 · 6 comments
Closed
11 of 12 tasks
Labels
non-breaking Does not require a breaking change (that would block V1.0)

Comments

@Kangz
Copy link
Collaborator

Kangz commented Nov 12, 2019

Most of the behavior of webgpu.h is the same as the WebGPU API (normative reference) but there's a couple places where webgpu.h has non-trivial differences with WebGPU, and it also has native-specific APIs. This is a tracking issue to create initial explainers / spec for these parts.

Things that are very different in native:

Things that use callbacks (Futures) instead of promises:
should be sufficiently covered in Asynchronous Operations.md

  • Buffer mapping
  • Error reporting
  • Device loss
  • Fence
    doesn't exist anymore

Other:

2024-11-27: updates from @kainino0x in italics

  • All items in the "needs docs" label (regardless of whether open or closed)
@kainino0x kainino0x added the needs docs Non-trivial API contract needs to be documented. Orthogonal to open vs closed; remove when doc'd. label Aug 3, 2023
@kainino0x
Copy link
Collaborator

kainino0x commented Aug 3, 2023

I've created a new "needs docs" label which I'll try to add to everything that we're going to need to write docs/spec for.
https://github.com/webgpu-native/webgpu-headers/issues?q=label%3A%22needs+docs%22

@kainino0x
Copy link
Collaborator

I didn't go through the closed issues though. There may be some which still need documentation and should have the label added.

@kainino0x
Copy link
Collaborator

See discussion here #275 (comment) about having a "doc jam" to get the docs written

@kainino0x kainino0x added the !discuss Needs discussion (at meeting or online) label Apr 11, 2024
@kainino0x
Copy link
Collaborator

Apr 11 meeting:

  • doc jam - how should we do this?
  • KN: add links to spec in yaml?
    • pull text from it at codegen time? (but the names will differ)
    • or just generate links to the spec?
  • Generator pulling from spec is worth exploring - from html
  • Explore having the spec repo itself generate some parseable (e.g. json) documentation out of the spec, similar to what types generator does today — then use this for both typescript and C

@kainino0x kainino0x removed the !discuss Needs discussion (at meeting or online) label Apr 12, 2024
@kainino0x
Copy link
Collaborator

kainino0x commented Nov 28, 2024

We still want to fill out the docs for everything (see last comment).

The last item from the OP:

  • How the regular part of webgpu.h relates the the WebGPU IDL

has a partial fix in #452, but ideally we should eventually write a doc that explains the patterns used to translate WebIDL to C.

However! I am going to call both of these things non-breaking for 1.0 and label this issue as such.

@kainino0x kainino0x added the non-breaking Does not require a breaking change (that would block V1.0) label Nov 28, 2024
@kainino0x kainino0x removed the needs docs Non-trivial API contract needs to be documented. Orthogonal to open vs closed; remove when doc'd. label Jan 3, 2025
@kainino0x
Copy link
Collaborator

Last item is now tracked in #484 instead!

@kainino0x kainino0x unpinned this issue Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
non-breaking Does not require a breaking change (that would block V1.0)
Projects
None yet
Development

No branches or pull requests

2 participants