-
Notifications
You must be signed in to change notification settings - Fork 578
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
MSL: Expose information about specialization constants - macro mapping #2442
MSL: Expose information about specialization constants - macro mapping #2442
Conversation
0f28449
to
572cba9
Compare
I have updated the PR to finalize the API and clean up unnecessary code in previous versions. It does not change the generated MSL code but rather provides some extra information for users to know the handling of specialization constants in MSL to properly implement specialization. The user of the API is: KhronosGroup/MoltenVK#2441 (The API is stable and most likely won't change regardless of the user implementation) Please let me know if there is concern over the change or amendment needed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comments.
572cba9
to
bfb24b2
Compare
Specialization constant may be translated into either function constant or macro in MSL. MoltenVK requires different processing for the two cases. We expose the list of constant ids and their corresponding macro names so that MoltenVK can use them properly support specialization on those macros.
bfb24b2
to
2315b7c
Compare
Specialization constant may be translated into either function constant or macro in MSL. MoltenVK requires different processing for the two cases. We expose the list of constant ids and their corresponding macro names so that MoltenVK can use them properly support specialization on those macros.
References:
KhronosGroup/MoltenVK#2434
KhronosGroup/MoltenVK#2423 (comment)