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

Simplify triangle example's vertex input state #512

Merged

Conversation

swooster
Copy link
Contributor

Use a PipelineVertexInputStateCreateInfo builder to pass a slice instead of a pointer and length. Also makes the triangle example a little more consistent with the texture example.

Copy link
Collaborator

@MarijnS95 MarijnS95 left a comment

Choose a reason for hiding this comment

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

Nice catch! I'm quite surprised though why the original commit, that said "to use builders and defaults", removed this exact use of the builder pattern to substitute it with that manual assignment... 0a16b5b#diff-99480e84b5476c223fd790be90ef853c9f4295d15113172f83679b2882ece4e6L259-R278

@MarijnS95 MarijnS95 merged commit ea65db4 into ash-rs:master Dec 19, 2021
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