-
Notifications
You must be signed in to change notification settings - Fork 308
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
FP16 Extension Document #2647
FP16 Extension Document #2647
Conversation
Define the GPUFeatureName `fp16-in-shader-and-buffer` and describe this extension in WebGPU spec. In WGSL spec, add `f16` extension identifier and description, add `f16` scalar type and corresponding vector, matrix types and describe their memory layouts, add type constructor expressions, zero value expressions, conversion expressions, reinterpretation of representation expressions, arithmetic expressions, and comparison expressions for f16, and describe accuracy requirement for expressions for f16. Issue: gpuweb#2512
Following the guidance of #2301, this PR add a markdown file describing FP16 extension in the |
Please take a look, thanks! |
WGSL meeting minutes 2022-03-08
|
I prefer maintaining documents like this in the extensions/ directory, over a branch, until they're ready. But if it's time to spec this in the actual specs, we can go straight to PRs against the specs. |
|
||
# FP16 usages support (PR0) | ||
|
||
**Roadmap:** This draft extension is **on the standards track**. It is currently intended to be used in Web-compliant contexts, any user with a capable device will be able to use this extension to acquire the FP16 ability. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Anything that's not described in the actual specs must not be exposed to the Web. So if we land this document, this should say something like:
**Roadmap:** This draft extension is **on the standards track**. It is currently intended to be used in Web-compliant contexts, any user with a capable device will be able to use this extension to acquire the FP16 ability. | |
**Roadmap:** This draft extension is **on the standards track**, but is a work in progress. User agents must not implement/expose these features until they are merged into the main specs. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
For this FP16 extension, if we going to maintain a markdown document, I will simply move the content from the draft in HackMD into this document with minor fixes and ask for review. After all content are moved to the markdown document here, another PR against the main spec shall be opened (assumedly by me) and go for another rounds of reviews. |
This works for me. There's enough consensus in the group to move to making the actual PR to add this to the WGSL spec, though it should be more or less the whole extension, not just parts of it. |
If I get it right, I will make this PR a complete markdown document, and after this PR is landed I will open a PR against the main spec. |
WGSL meeting minutes 2022-03-15
|
Close this PR, as the extension against spec PR #2696 has been merged. |
Define the GPUFeatureName
fp16-in-shader-and-buffer
and describe this extension in WebGPU spec. In WGSL spec, addf16
extension identifier and description, addf16
scalar type and corresponding vector, matrix types and describe their memory layouts, add type constructor expressions, zero value expressions, conversion expressions, reinterpretation of representation expressions, arithmetic expressions, and comparison expressions for f16, and describe accuracy requirement for expressions for f16.Issue: #2512
EDIT:
This PR currently has a complete markdown document that describe the whole extension.