Sitelet https://github.com/gpuweb/gpuweb/pull/749
Skip to content

Add Queue/writeBuffer method - #749

Merged
kainino0x merged 3 commits into
gpuweb:masterfrom
kvark:write-buffer
May 7, 2020
Merged

kainino0x merged 3 commits into
gpuweb:masterfrom
kvark:write-buffer

Conversation

@kvark

@kvark kvark commented May 4, 2020 •

Copy link
Copy Markdown
Contributor

This is the writeBuffer proposal moved out of #509


Preview | Diff

@kvark
kvark requested review from austinEng and kainino0x May 4, 2020 20:40
Comment thread spec/index.bs Outdated
Comment thread spec/index.bs Outdated
Comment thread spec/index.bs Outdated
Comment thread spec/index.bs Outdated
@kvark

kvark commented May 4, 2020

Copy link
Copy Markdown
Contributor Author

Thanks @kainino0x ! Your notes are addressed now.

@austinEng austinEng left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One comment, otherwise looks great

Comment thread spec/index.bs
@kvark

kvark commented May 5, 2020

Copy link
Copy Markdown
Contributor Author

Thanks @austinEng ! I agree, although there are many other places where we could throw. But this is a start :)

@Kangz

Kangz commented May 7, 2020

Copy link
Copy Markdown
Contributor

@kvark anything missing to merge this? #708 is blocked on it :)

@kvark

kvark commented May 7, 2020

Copy link
Copy Markdown
Contributor Author

Nothing is missing, as far as I know. Just don't want to self-merge, and giving more chance for folks outside of Google-Mozilla to look. Please feel free to merge, especially since it's blocking you.

@kainino0x
kainino0x merged commit 7134349 into gpuweb:master May 7, 2020
@kvark
kvark deleted the write-buffer branch May 7, 2020 17:56
@kainino0x

Copy link
Copy Markdown
Contributor

If anyone else still wants to review, please do so and we can follow up.

@kvark kvark mentioned this pull request May 10, 2020
7 tasks done
bors Bot added a commit to gfx-rs/wgpu that referenced this pull request May 13, 2020
653: Implement Queue::write_buffer r=nobody a=kvark

Implements gpuweb/gpuweb#749
TODO:
- [x] handle a case where the buffer is dropped while there is a pending write. Edit: we bump the submission index on the buffer, so it will be kept alive.
- [x] properly free the temporary buffer and memory
- [x] properly destroy the pending command buffer on device drop
- [x] tweak the linear allocator settings - bumped to 16 megs
- [x] provide a patch to wgpu-rs and verify it works on the examples - gfx-rs/wgpu-rs#307
- [x] provide a patch to wgpu-native - gfx-rs/wgpu-native#25
- [x] check/fix the trace/replay support

Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
JusSn pushed a commit to JusSn/gpuweb that referenced this pull request Jun 8, 2020
* Add Queue/writeBuffer method

* Address Kai's comments

* Throw under some conditions in writeBuffer
JusSn pushed a commit to JusSn/gpuweb that referenced this pull request Jun 8, 2020
* Add Queue/writeBuffer method

* Address Kai's comments

* Throw under some conditions in writeBuffer
ben-clayton pushed a commit to ben-clayton/gpuweb that referenced this pull request Sep 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants