-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Metal FeatureFamily change is now using incorrect enum values #3067
Comments
Here are the fixes:
|
Good catch, Just submit PR with fixes. |
@bkaradzic my codebase isn't in a place where I can easily submit PRs unfortunately, so I'm just passing along the info for now :) |
Metal feature set tables |
@bkaradzic I think c43c447 and using the Would it make sense to add Xcode version detection like in MoltenVK (version macros defined here)? |
One of the more recent changes to renderer_mtl moved from MTLFeatureSet to MTLGPUFamily, however in many cases it is now using incorrect enum values and tests. For example here:
Comparison sampling is supported from family "Common2" and "Apple3" up, and those enums are:
As a result, samplers with comparisons do not work on iOS devices. There are other inconsistencies and errors in the metal renderer currently as a result of this change. I think it might be worth defining this enum (and maybe others) on platforms without the header to avoid magic numbers? Assuming that's the reason they are hardcoded constants?
The text was updated successfully, but these errors were encountered: