WebGPU
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Write
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
      • Invitee
    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Sharing URL Help
Menu
Options
Versions and GitHub Sync Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Write
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
Invitee
Publish Note

Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

Your note will be visible on your profile and discoverable by anyone.
Your note is now live.
This note is visible on your profile and discoverable online.
Everyone on the web can find and read all notes of this public team.
See published notes
Unpublish note
Please check the box to agree to the Community Guidelines.
View profile
Engagement control
Commenting
Permission
Disabled Forbidden Owners Signed-in users Everyone
Enable
Permission
  • Forbidden
  • Owners
  • Signed-in users
  • Everyone
Suggest edit
Permission
Disabled Forbidden Owners Signed-in users Everyone
Enable
Permission
  • Forbidden
  • Owners
  • Signed-in users
Emoji Reply
Enable
Import from Dropbox Google Drive Gist Clipboard
   owned this note    owned this note      
Published Linked with GitHub
1
Subscribed
  • Any changes
    Be notified of any changes
  • Mention me
    Be notified of mention me
  • Unsubscribe
Subscribe
# WebGPU Origin Trial Caveats ## WebGPU API ### Missing features WebGPU features that are not supported (either the methods/enums don't exist, or produce a validation error when used): - **In Progress** Pipeline overridable constants ([dawn:1041](https://crbug.com/dawn/1041)) - **In Progress**`GPUTextureDescriptor.viewFormats` is not implemented ([dawn:1276](https://crbug.com/dawn/1276) - `GPUShaderModuleDescriptor.sourceMap` ([chromium:1177491](https://crbug.com/chromium/1177491)) - `GPUCanvasConfiguration.colorSpace` is not implemented ([chromium:1241375](https://crbug.com/chromium/1241375)) - **Postponed** Pipeline statistics queries. ([chromium:1177506](https://crbug.com/chromium/1177506)) - **Done in M96** Vertex only pipelines ([dawn:136](https://crbug.com/dawn/136)) - **Done in M97** `GPURenderEncoderBase.drawIndexedIndirect`([dawn:809](https://crbug.com/dawn/809)) - **Done in M97** `GPUComputePassEncoder.dispatchIndirect` ([dawn:1039](https://crbug.com/dawn/1039)) - **Done in M97** Changing the limits when creating an adapter ([dawn:685](https://crbug.com/dawn/685)) - **Done in M97** `depth16unorm` texture format ([dawn:570](https://crbug.com/dawn/570)) - **Done in M97** ETC2 and ASTC optional features ([dawn:955](https://crbug.com/dawn/955)) - **Done in M98** `GPUCommandEncoder.clearBuffer` ([dawn:1170](https://crbug.com/dawn/1170)) - **Done in M99** Dynamic storage buffers ([dawn:429](https://crbug.com/dawn/429)) - **Done in M100** Readonly depth and stencil render pass attachments (`GPURenderPassDepthStencilAttachment.stencilReadOnly` and `GPURenderPassDepthStencilAttachment.depthReadOnly`) ([dawn:485](https://crbug.com/dawn/485)) - **Done in M101** Support canvas context texture formats other than bgra8unorm ([chromium:1241369](https://crbug.com/chromium/1241369)) - **Done in M101** 1D textures ([dawn:814](https://crbug.com/dawn/814)) - **Done in M101** Color space conversion for `copyExternalImageToTexture` ([dawn:964](https://crbug.com/dawn/964)) - **Done in M101** `depth24unorm-stencil8` and `depth32float-stencil8` optional features ([dawn:690](https://crbug.com/dawn/690)) - **Done in M102**`GPUCanvasConfiguration.compositingAlphaMode` is not implemented ([chromium:1241373](https://crbug.com/chromium/1241373)) - **Done in M102** `stencil8` texture format ([dawn:666](https://crbug.com/dawn/666)) - **Done in M102** `GPUDevice.destroy()` ([dawn:628](https://crbug.com/dawn/628)) ### Missing optimizations A number of important optimizations aren’t implemented yet, hence benchmarks results are very likely to change over time. - Results of shader module and pipeline compilation isn't cached, causing all page loads to be "cold" page loads for compilation. - Transfer to and from the GPU (`GPUQueue.writeBuffer()`, `GPUBuffer.mapAsync()` and `GPUBufferDescriptor.mappedAtCreation`) are performing more copies than necessary. - **In Progress** `GPUDevice.importExternalTexture` performs too many copies instead of being 0 copy as intended by the specification. - The implementation on the Vulkan API (ChromeOS, Linux) is very naive in some places. - The implementations on D3D12 (Windows) and Vulkan (ChromeOS, Linux) doesn't optimize barrier scheduling, leading to missed parallelism in some workloads. - Many other optimizations for CPU usage, GPU memory consumption, etc. - **Done in M96** `GPUDevice.createRenderPipelineAsync()` isn't actually done asynchronously (leading to GPU process stalls like `GPUDevice.createRenderPipeline()`). ### Missing integrations - Linux (can be enabled with `--enable-features=Vulkan`) - Android - [WebXR](https://bugs.chromium.org/p/chromium/issues/detail?id=1271199) - **In Progress** CPU fallback with Swiftshader (`GPURequestAdapterOptions.forceFallbackAdapter` can't be set to true) - DevTools ### Important known issues - Incorrect `[[vertex_index]]` and `[[instance_index]]` in indirect draws in D3D12 ([dawn:548](https://crbug.com/dawn/548)) - **In Progress** `GPUAdapter.name` is always `"default"` instead of giving useful information ([chromium:1231163](https://crbug.com/chromium/1231163)) - `GPURequestAdapterOptions.powerPreference` doesn't have an effect on some OSes. - **Done in M97** Error messages for validation errors don't provide sufficient details ([dawn:563](https://crbug.com/dawn/563)) - **Done in M97** Object labels aren't used in error messages ([dawn:840](https://crbug.com/dawn/840)) ## WebGPU Shading Language (WGSL) Note: Differences are relative to the following version of the WGSL specification: https://www.w3.org/TR/2021/WD-WGSL-20210825/ ### Common - Inter-scope variable shadowing is not supported ([tint:819](https://crbug.com/tint/819)) - Array indices must be signed integer literals ([tint:1068](https://crbug.com/tint/1068), [tint:1117](https://crbug.com/tint/117)) - The `num_workgroups` builtin is not supported ([tint:752](https://crbug.com/tint/752)) - The `quantizeToF16()` builtin function is not supported ([tint:991](https://crbug.com/tint/991)) - The `atomicSub()` builtin function is not supported ([tint:1130](https://crbug.com/tint/1130)) - No way currently in WGSL to declare a `mat2x2` that is std140 compatible. - Construction of a matrix from scalars is not supported ([tint:1123](https://crbug.com/tint/1123)) ### Windows - Compilation may fail when assigning to an array nested in a structure, using a dynamic index ([tint:998](https://crbug.com/tint/998)) - Infinite loops will not compile ([tint:1038](https://crbug.com/tint/1038)) - Loops containing certain instructions will not compile ([tint:1112](https://crbug.com/tint/1112)) - Continue statements cannot be used in switch statements ([tint:1080](https://crbug.com/tint/1080)) - Use of `discard` may error with `Not all control paths return a value` ([tint:1081](https://crbug.com/tint/1081)) - Division by compile-time constant zero may fail to compile ([tint:1083](https://crbug.com/tint/1083)) ### macOS - Compilation may fail when assigning to an array nested in a structure, using a dynamic index ([tint:1094](https://crbug.com/tint/1094)) - Matrices cannot be used in `workgroup` storage ([tint:938](https://crbug.com/tint/938))

Import from clipboard

Paste your markdown or webpage here...

Advanced permission required

Your current role can only read. Ask the system administrator to acquire write and comment permission.

This team is disabled

Sorry, this team is disabled. You can't edit this note.

This note is locked

Sorry, only owner can edit this note.

Reach the limit

Sorry, you've reached the max length this note can be.
Please reduce the content or divide it to more notes, thank you!

Import from Gist

Import from Snippet

or

Export to Snippet

Are you sure?

Do you really want to delete this note?
All users will lose their connection.

Create a note from template

Create a note from template

Oops...
This template has been removed or transferred.
Upgrade
All
  • All
  • Team
No template.

Create a template

Upgrade

Delete template

Do you really want to delete this template?
Turn this template into a regular note and keep its content, versions, and comments.

This page need refresh

You have an incompatible client version.
Refresh to update.
New version available!
See releases notes here
Refresh to enjoy new features.
Your user state has changed.
Refresh to load new user state.

Sign in

Forgot password

or

By clicking below, you agree to our terms of service.

Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
Wallet ( )
Connect another wallet

New to HackMD? Sign up

Help

  • English
  • 中文
  • Français
  • Deutsch
  • 日本語
  • Español
  • Català
  • Ελληνικά
  • Português
  • italiano
  • Türkçe
  • Русский
  • Nederlands
  • hrvatski jezik
  • język polski
  • Українська
  • हिन्दी
  • svenska
  • Esperanto
  • dansk

Documents

Help & Tutorial

How to use Book mode

Slide Example

API Docs

Edit in VSCode

Install browser extension

Contacts

Feedback

Discord

Send us email

Resources

Releases

Pricing

Blog

Policy

Terms

Privacy

Cheatsheet

Syntax Example Reference
# Header Header 基本排版
- Unordered List
  • Unordered List
1. Ordered List
  1. Ordered List
- [ ] Todo List
  • Todo List
> Blockquote
Blockquote
**Bold font** Bold font
*Italics font* Italics font
~~Strikethrough~~ Strikethrough
19^th^ 19th
H~2~O H2O
++Inserted text++ Inserted text
==Marked text== Marked text
[link text](https:// "title") Link
![image alt](https:// "title") Image
`Code` Code 在筆記中貼入程式碼
```javascript
var i = 0;
```
var i = 0;
:smile: :smile: Emoji list
{%youtube youtube_id %} Externals
$L^aT_eX$ LaTeX
:::info
This is a alert area.
:::

This is a alert area.

Versions and GitHub Sync
Get Full History Access

  • Edit version name
  • Delete

revision author avatar     named on  

More Less

Note content is identical to the latest version.
Compare
    Choose a version
    No search result
    Version not found
Sign in to link this note to GitHub
Learn more
This note is not linked with GitHub
 

Feedback

Submission failed, please try again

Thanks for your support.

On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

Please give us some advice and help us improve HackMD.

 

Thanks for your feedback

Remove version name

Do you want to remove this version name and description?

Transfer ownership

Transfer to
    Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

      Link with GitHub

      Please authorize HackMD on GitHub
      • Please sign in to GitHub and install the HackMD app on your GitHub repo.
      • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
      Learn more  Sign in to GitHub

      Push the note to GitHub Push to GitHub Pull a file from GitHub

        Authorize again
       

      Choose which file to push to

      Select repo
      Refresh Authorize more repos
      Select branch
      Select file
      Select branch
      Choose version(s) to push
      • Save a new version and push
      • Choose from existing versions
      Include title and tags
      Available push count

      Pull from GitHub

       
      File from GitHub
      File from HackMD

      GitHub Link Settings

      File linked

      Linked by
      File path
      Last synced branch
      Available push count

      Danger Zone

      Unlink
      You will no longer receive notification when GitHub file changes after unlink.

      Syncing

      Push failed

      Push successfully