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

Ensure specialization constants come sorted from reflection #89420

Merged
merged 1 commit into from
Mar 12, 2024

Conversation

RandomShaper
Copy link
Member

@RandomShaper RandomShaper commented Mar 12, 2024

Although it's not the end of the world, spec constants can come not sorted by constant_id. Ensuring they are sorted makes things easier for third-party code (extensions, etc.) that parses them.

If at some point spirv_reflect includes support for spec constants upstream, we may no longer need this patch, provided their code already sorts them. In the meantime, it's much easier for us to sort in Godot-land, where we have sort() than trying to extend the patch to include a sorting algo in the C code of spirv_reflect.

@RandomShaper RandomShaper added this to the 4.3 milestone Mar 12, 2024
@RandomShaper RandomShaper requested a review from a team as a code owner March 12, 2024 13:46
@akien-mga akien-mga merged commit 6128206 into godotengine:master Mar 12, 2024
16 checks passed
@akien-mga
Copy link
Member

Thanks!

@RandomShaper RandomShaper deleted the sort_scs branch March 12, 2024 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants