Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

kvark
Copy link
Contributor

@kvark kvark commented May 4, 2020

This is the writeBuffer proposal moved out of #509


Preview | Diff

@kvark kvark requested review from kainino0x and austinEng May 4, 2020 20:40
@kvark
Copy link
Contributor Author

kvark commented May 4, 2020

Thanks @kainino0x ! Your notes are addressed now.

Copy link
Contributor

@austinEng austinEng left a comment

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

@kvark
Copy link
Contributor Author

kvark commented May 5, 2020

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

@Kangz
Copy link
Contributor

Kangz commented May 7, 2020

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

@kvark
Copy link
Contributor Author

kvark commented May 7, 2020

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
Contributor

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

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 <[email protected]>
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