We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 5213 - Add support to metal in iOS/tvOS simulator
Summary: Add support to metal in iOS/tvOS simulator
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: render (show other bugs)
Version: HG 2.1
Hardware: x86_64 iOS (All)
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-25 19:09 UTC by Vincent Hamm
Modified: 2020-12-09 15:24 UTC (History)
0 users

See Also:


Attachments
patch to enable metal on simulator (2.38 KB, patch)
2020-06-25 19:09 UTC, Vincent Hamm
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Vincent Hamm 2020-06-25 19:09:56 UTC
Created attachment 4395 [details]
patch to enable metal on simulator

Xcode11 and ios13 added support for metal simulator.
Here is a quick and dirty patch to enable it. Pretty early and only tested on a few samples for now. Required mostly to enable metal support on correct version of ios, generate simulator compatible shaders and enforce buffer alignments on simulator (same as osx).
Not including the shaders in the patch for brevity. Just run build-metal-shaders.sh to generate them.
Comment 1 Sam Lantinga 2020-12-09 15:24:24 UTC
Patch added, thanks!
https://hg.libsdl.org/SDL/rev/c338cc4cad04