Sign in to import from GitHub:
This document explains the design constraints for data upload to the GPU in WebGPU and documents all the different proposals that were surfaced to the group.
Because WebGPU is a Web API, and because of WebGPU's structure, the data upload design must:
ArrayBuffer
, detaching can only be done on the thread that created itOther goals for the design that are more subjective to evaluate and in their importance:
Originally added in #147 (see also #49) and currently in the spec.
Missing in the spec is that a GPUBuffer
can only be unmapped on the thread that mapped it.
Removed because there's a number of bad interactions with the rest of the API, see #481. Noone has taken a shot at solving the interactions yet.
GPUQueue.writeToBuffer
#509At this point this design is clearly the preferred one out of all the immediate upload designs.
Note this is similar to the proposal in #154 and #418
GPUBuffer.setSubData
#418Also in #49.
Removed in favor of GPUQueue.writeToBuffer
, because it makes the ordering of operations more clear.
GPUUploadPass
#491The semantics were complicated and the pass locked the queue, which made multithreaded scenarios challenging and added more API brittleness. Removed in favor of GPUQueue.writeToBuffer
.
Removed in favor of GPUQueue.writeToBuffer
, requires storing the data in the command encoder which we'd like to avoid.
Meta discussion #138
or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
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.
Syncing