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

VkSubpassDescription does not autosize colorAttachementCount #539

Closed
octylFractal opened this issue Mar 5, 2020 · 1 comment
Closed

Comments

@octylFractal
Copy link
Contributor

Environment

  • LWJGL version: 3.2.3
  • LWJGL build #: 13
  • Java version: 13.0.2
  • Platform: Linux
  • Module: vulkan

Description

VkSubpassDescription's colorAttachmentCount field does not have its size determined by pColorAttachments. I think this is a bug in the generator, because the definition (properly?) references two fields, but neither contribute to the count in colorAttachmentCount:

AutoSize("pColorAttachments", "pResolveAttachments", optional = true)..uint32_t("colorAttachmentCount", ...
@Spasi
Copy link
Member

Spasi commented Mar 6, 2020

I'm afraid this is not a bug. The auto-size functionality on input is disabled when the count member references more than one other struct member. We explored different options for this a few years ago, but couldn't figure out something satisfying.

So, you have to set colorAttachmentCount explicitly, but it is still used automatically when you read pColorAttachments or pResolveAttachments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants