Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump the vertex buffer sizes by 1 #1855

Merged
merged 1 commit into from
Aug 24, 2021
Merged

Conversation

kvark
Copy link
Member

@kvark kvark commented Aug 23, 2021

Connections
Matches gpuweb/gpuweb#2044 (comment)

Description
Vulkan doesn't like vertex buffers bound at the end of the range.
This change adds 1 to all vertex buffers.

Impl note: it would be better to only do this for Vulkan, but then it would have a weird interaction with buffer zeroing. Since zeroing is handled on wgpu-core side, it needs to know the actual size of the buffer. Maybe we can revisit this later?

Testing
Untested

@kvark kvark requested a review from cwfitzgerald August 23, 2021 20:52
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.

What a bizarre problem

@cwfitzgerald cwfitzgerald enabled auto-merge August 23, 2021 20:56
@cwfitzgerald cwfitzgerald merged commit 0a3fd15 into gfx-rs:master Aug 24, 2021
@kvark kvark deleted the vertex-offset branch August 24, 2021 17:56
Patryk27 pushed a commit to Patryk27/wgpu that referenced this pull request Nov 23, 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.

2 participants