Skip to content
This repository has been archived by the owner on Jun 18, 2021. It is now read-only.

Update with minBufferBindingSize #377

Merged
merged 1 commit into from
Jun 17, 2020
Merged

Update with minBufferBindingSize #377

merged 1 commit into from
Jun 17, 2020

Conversation

kvark
Copy link
Member

@kvark kvark commented Jun 16, 2020

Depends on gfx-rs/wgpu#726
Also reverts #373 : buffer bindings now have to include at least one element of an unsized struct portion, so they can't be zero-sized.

Copy link
Member

@cwfitzgerald cwfitzgerald left a comment

Choose a reason for hiding this comment

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

LGTM. I like the use of new!

bors bot added a commit to gfx-rs/wgpu that referenced this pull request Jun 17, 2020
726: Basic support for minBufferBindingSize r=cwfitzgerald a=kvark

**Connections**
Has basic (partial) implementation of gpuweb/gpuweb#678
wgpu-rs update - gfx-rs/wgpu-rs#377

**Description**
This change allows users to optionally specify the expected minimum binding size for buffers. We are then validating this against both the pipelines and bind groups.
If it's not provided, we'll need to validate at draw time - this PR doesn't do this (focus on API changes first).
It also moves out the `read_spirv`, since wgpu-types wasn't the right home for it ever.

**Testing**
Tested on wgpu-rs examples

Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
@kvark
Copy link
Member Author

kvark commented Jun 17, 2020

bors r=cwfitzgerald

@kvark kvark marked this pull request as ready for review June 17, 2020 03:59
bors bot added a commit that referenced this pull request Jun 17, 2020
377: Update with minBufferBindingSize r=cwfitzgerald a=kvark

Depends on gfx-rs/wgpu#726
Also reverts #373 : buffer bindings now have to include at least one element of an unsized struct portion, so they can't be zero-sized.

Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
@bors
Copy link
Contributor

bors bot commented Jun 17, 2020

Build failed:

@kvark
Copy link
Member Author

kvark commented Jun 17, 2020

Updated the water example and fixed it to work on Metal.
bors r=cwfitzgerald

bors bot added a commit that referenced this pull request Jun 17, 2020
377: Update with minBufferBindingSize r=cwfitzgerald a=kvark

Depends on gfx-rs/wgpu#726
Also reverts #373 : buffer bindings now have to include at least one element of an unsized struct portion, so they can't be zero-sized.

Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
@bors
Copy link
Contributor

bors bot commented Jun 17, 2020

Build failed:

@kvark
Copy link
Member Author

kvark commented Jun 17, 2020

web backend fixes
bors r=cwfitzgerald

@bors bors bot merged commit 0f55a67 into gfx-rs:master Jun 17, 2020
@cwfitzgerald
Copy link
Member

Third times the charm :)

@kvark kvark deleted the min-buf-size branch June 17, 2020 13:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants