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

Emit primitiveRestartEnable disabled warning only for strip topology. #2046

Merged
merged 1 commit into from
Oct 18, 2023

Conversation

billhollings
Copy link
Contributor

  • Move check and warning to MVKRenderingCommandEncoderState.
  • Pass primitiveRestartEnable to MVKRenderingCommandEncoderState.
  • Warn only if primitiveRestartEnable disabled and strip topology is used.

Fixes issue #2045.

- Move check and warning to MVKRenderingCommandEncoderState.
- Pass primitiveRestartEnable to MVKRenderingCommandEncoderState.
- Warn only if primitiveRestartEnable disabled and strip topology is used.
@billhollings billhollings merged commit 9e4ee9e into KhronosGroup:main Oct 18, 2023
6 checks passed
@billhollings billhollings deleted the fix-prim-rsrt-warn branch October 18, 2023 17:45
@cdavis5e
Copy link
Collaborator

What about triangle fans?

@billhollings
Copy link
Contributor Author

What about triangle fans?

Good catch!

I had tried working that in, but because there is no Metal triangle fan topology value, I ended up having to double-track both Metal and Vulkan topology values in MVKRenderingCommandEncoderState, which felt like I was adding a bunch of confusing special-case-outlier code and tracking, all for an unenforceable warning message, so I dropped it.

Triangle fan restart will work (it's handled in the index conversion), but like strips in Metal, cannot be disabled. The app log just won't see a warning for TriStrips.

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