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 Metal renderer for Mac and iOS #3841

Merged
merged 3 commits into from
Jan 29, 2024
Merged

Add Metal renderer for Mac and iOS #3841

merged 3 commits into from
Jan 29, 2024

Conversation

sauwming
Copy link
Member

The current OpenGL ES renderer has been deprecated for iOS since iOS 12.0
(https://developer.apple.com/documentation/opengles).

Thus we need to migrate to the new Metal API. The advantage of the new API is that it's also available for Mac OS (we use APIs that's supported for 10.14+ (https://developer.apple.com/documentation/metal/using_metal_to_draw_a_view_s_contents?language=objc)). This makes SDL no longer required for Mac and we can use the native Metal renderer instead.

@sauwming
Copy link
Member Author

The CI is currently failing with "Illegal instruction: 4". It looks like the CI machine doesn't support the Metal API. Let me double check this.

@sauwming
Copy link
Member Author

Fixed it in the latest commit:

@sauwming sauwming merged commit b3ea8a2 into master Jan 29, 2024
35 checks passed
@sauwming sauwming deleted the metal branch January 29, 2024 01:28
@sbarcelona11
Copy link

@sauwming I can't see these changes in the latest library version. Why?
The branch is removed. Can you upload it again?

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.

4 participants