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

Expose FramebufferCreateInfo::attachment_count builder for IMAGELESS #747

Merged
merged 2 commits into from
May 2, 2023

Conversation

MarijnS95
Copy link
Collaborator

Fixes #450

Don't omit the attachment_count() builder method, because it is valid to set the number of attachments without providing attachments in the IMAGELESS case.

Also change the generator array lookup to use the name of the count field that is allowed to have a builder method, rather than the name of the field that would use this as len field and hence cause it to be skipped.

MarijnS95 added 2 commits May 1, 2023 23:08
Don't omit the `attachment_count()` builder method, because it is valid
to set the number of attachments without providing attachments in the
`IMAGELESS` case.

Also change the generator array lookup to use the name of the count
field that is allowed to have a builder method, rather than the name of
the field that would use this as `len` field and hence cause it to be
skipped.
@MarijnS95 MarijnS95 merged commit ae53f73 into master May 2, 2023
@MarijnS95 MarijnS95 deleted the framebuffer-create-into-expose-attachment-count branch May 2, 2023 08:44
MarijnS95 added a commit to Traverse-Research/ash that referenced this pull request May 2, 2023
MarijnS95 added a commit that referenced this pull request May 2, 2023
…SS` (#747)

* Expose `FramebufferCreateInfo::attachment_count` builder for `IMAGELESS`

Don't omit the `attachment_count()` builder method, because it is valid
to set the number of attachments without providing attachments in the
`IMAGELESS` case.

Also change the generator array lookup to use the name of the count
field that is allowed to have a builder method, rather than the name of
the field that would use this as `len` field and hence cause it to be
skipped.

* Clean up clones
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.

Add FramebufferCreateInfoBuilder::attachment_count
2 participants