Skip to content

Enforce copy buffer-texture alignment#679

Merged
bors[bot] merged 1 commit intogfx-rs:masterfrom
kvark:write-texture
Jun 1, 2020
Merged

Enforce copy buffer-texture alignment#679
bors[bot] merged 1 commit intogfx-rs:masterfrom
kvark:write-texture

Conversation

@kvark
Copy link
Copy Markdown
Member

@kvark kvark commented May 28, 2020

Connections
This is a follow-up to #666

Description
We are now enforcing the bytes_per_row on copy-texture copies to COPY_BYTES_PER_ROW_ALIGNMENT.
We allow it being non-aligned for write_texture, which now has the code to properly align the staging space it uses, and to copy the rows one by one with proper alignment.

We are also moving BufferSize to wgpu-types, because it's required for wgpu-rs to build.

Testing
Testing this needs gfx-rs/wgpu-rs#328, which is blocked by gfx-rs/wgpu-rs#323

@kvark kvark requested a review from grovesNL May 28, 2020 14:45
Copy link
Copy Markdown
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.

One nit, and one question, otherwise LGTM

@kvark
Copy link
Copy Markdown
Member Author

kvark commented Jun 1, 2020

Thank you for reviewing!
bors r=cwfitzgerald

@bors
Copy link
Copy Markdown
Contributor

bors bot commented Jun 1, 2020

@bors bors bot merged commit 201073b into gfx-rs:master Jun 1, 2020
@kvark kvark deleted the write-texture branch June 1, 2020 20:58
kvark added a commit to kvark/wgpu that referenced this pull request Jun 3, 2021
679: WGSL shader conversion for the examples r=grovesNL a=kvark

Blocked on:
  - ~~gfx-rs/naga#335
  - ~~gfx-rs/naga#336
  - ~~gfx-rs#1095
  - ~~gfx-rs/naga#360
  - gfx-rs/gfx#3622
  - ~~GL backend doing the program link check earlier~~

Converted:
- [x] boids
- [x] cube
- [x] mipmap
- [x] msaa-line
- [x] shadow
- [x] skybox
- [ ] texture-array
- [ ] water

Co-authored-by: Dzmitry Malyshau <kvark@fastmail.com>
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.

2 participants