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

The "required format tables" aren't reflected in vk.xml #2389

Open
io7m opened this issue Jul 10, 2024 · 2 comments
Open

The "required format tables" aren't reflected in vk.xml #2389

io7m opened this issue Jul 10, 2024 · 2 comments
Assignees

Comments

@io7m
Copy link

io7m commented Jul 10, 2024

Currently, the tables in the Formats chapter that associate required format properties with formats are hand-written and aren't reflected in any form in vk.xml. This means that, for example, we can't reliably write tools to ask questions like "What, if any, formats are required to support usage bits X and Y"?

The markdown tables are here:

https://github.com/KhronosGroup/Vulkan-Docs/blob/main/chapters/formats.adoc#required-format-support

Note that (even though nobody should be doing this!) even the markdown is hard to parse as there are embedded ifdef statements. I've done it, and I wish I hadn't. 😆

@io7m
Copy link
Author

io7m commented Jul 10, 2024

@spencer-lunarg I think I'd like to see something along the lines of:

<format name="VK_FORMAT_R8_UNORM">
  <support-required bit="VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT"/>
  <support-required bit="VK_FORMAT_FEATURE_BLIT_SRC_BIT"/>
  ..
  <support-conditional bit="VK_FORMAT_FEATURE_STORAGE_IMAGE_ATOMIC_BIT" feature="shaderStorageImageExtendedFormats"/>
</format>

I'm not too fussed about the exact format.

@spencer-lunarg spencer-lunarg self-assigned this Jul 10, 2024
@spencer-lunarg
Copy link

Will try to get some time soon in near future to try and mock something up in the XML and make sure we can generate the spec from it

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

No branches or pull requests

2 participants