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

Summary: Add support to metal in iOS/tvOS simulator
Product: SDL Reporter: Vincent Hamm <vincent.hamm>
Component: renderAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: HG 2.1   
Hardware: x86_64   
OS: iOS (All)   
Attachments: patch to enable metal on simulator

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