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

Add VK_NULL_HANDLE vertex buffer binding support #42

Closed
wants to merge 2 commits into from

Conversation

attackgoat
Copy link
Owner

This change enables VK_EXT_robustness2 features so that VK_NULL_HANDLE may be bound to a vertex buffer binding in order to render with just an index buffer. See #41

The first commit of this change adds a draft function for testing, bind_null_vertex_buffer. This function will very likely be replaced with something nicer before merge.

TODO:

  • Test using fuzzer.rs
  • Expand AnyBufferBinding or make a similar enum for these cases
  • Gracefully handle unavailable features (test on such hardware)

@attackgoat
Copy link
Owner Author

Although this is entirely possible to do, I don't know of any applicable use-case for drawing from a null buffer. Closing until there is a reason to do this.

Drawing with no buffer specified (such as quads driven by gl_VertexIndex) is possible - see examples/multipass.rs.

@attackgoat attackgoat closed this Nov 11, 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.

1 participant