{ "$schema": "https://raw.githubusercontent.com/guitaripod/wwdc-sessions/master/schema/session.schema.json", "schemaVersion": 1, "id": "wwdc2026-357", "event": "wwdc2026", "eventName": "WWDC26", "year": 2026, "eventContentId": 357, "title": "Speedrun your game port with agentic coding", "description": "Kickstart your game’s journey to Apple platforms with new agentic skills in Game Porting Toolkit 4 that can dramatically accelerate the process of porting your game. Explore how to work alongside your AI coding assistant to adopt Metal 4, integrate MetalFX, and tune your game for Apple hardware. Find out how agents can autonomously troubleshoot GPU rendering issues using Metal debugging tools, empowering you to focus on what matters most.", "url": "https://developer.apple.com/videos/play/wwdc2026/357", "sosumiURL": "https://sosumi.ai/videos/play/wwdc2026/357", "type": "Video", "publishedAt": "2026-06-08T14:00:00-07:00", "platforms": [ "iOS", "iPadOS", "macOS" ], "keywords": [], "topics": [ "AI & Machine Learning", "Graphics & Games" ], "primaryTopic": "Graphics & Games", "duration": 1680, "hasTranscript": true, "transcriptWordCount": 3353, "availableLanguages": [ "eng", "fra", "jpn", "kor", "por", "spa", "zho" ], "media": { "hls": "https://devstreaming-cdn.apple.com/videos/wwdc/2026/357/5/5cfd0ceb-598f-4535-9abc-12e22a778326/cmaf.m3u8", "downloadHLS": "https://devstreaming-cdn.apple.com/videos/wwdc/2026/357/5/5cfd0ceb-598f-4535-9abc-12e22a778326/cmaf-download.m3u8", "downloadSD": "https://devstreaming-cdn.apple.com/videos/wwdc/2026/357/5/5cfd0ceb-598f-4535-9abc-12e22a778326/downloads/wwdc2026-357_sd.mp4", "downloadHD": "https://devstreaming-cdn.apple.com/videos/wwdc/2026/357/5/5cfd0ceb-598f-4535-9abc-12e22a778326/downloads/wwdc2026-357_hd.mp4", "duration": 1680 }, "codeSnippets": [ { "title": "Install Game Porting Toolkit skills", "language": "bash", "startTimeSeconds": 211, "code": "/plugin marketplace add apple/game-porting-toolkit\n/plugin install game-porting-skills@game-porting-toolkit" }, { "title": "Register resources for residency", "language": "cpp", "startTimeSeconds": 624, "code": "// With skill\nresidencySet->addAllocation(texture);\nresidencySet->commit();\n// ...\nargumentTable->setAddress(texture->gpuAddress(), bindPoint);\n\n// Without skill\nargumentTable->setAddress(texture->gpuAddress(), bindPoint);" }, { "title": "Query argument buffer offsets", "language": "cpp", "startTimeSeconds": 685, "code": "// With skill\nIRRootSignatureGetResourceLocations(m_MtlCurIRRootSig, locations);\nsize_t offset = locations[i].topLevelOffset;\n\n// Without skill\nsize_t offset = paramIndex * descriptorSize;" }, { "title": "Map D3D12 states to Metal 4 stages", "language": "cpp", "startTimeSeconds": 754, "code": "// With skill\nm_MtlPendingProducerStages |= MtlProducerStageFromD3D12(OldState);\nm_MtlPendingConsumerStages |= MtlConsumerStageFromD3D12(NewState);\n// ...\nm_ComputeEncoder->barrierAfterStages(\n m_MtlPendingProducerStages,\n m_MtlPendingConsumerStages,\n MTL4::VisibilityOptionDevice);\n\n// Without skill\nm_ComputeEncoder->barrierAfterStages(\n MTL::StageDispatch,\n MTL::StageAll,\n MTL4::VisibilityOptionDevice);" }, { "title": "Query shader reflection parameter count", "language": "cpp", "startTimeSeconds": 864, "code": "// With skill\nIRShaderReflection* refl = IRShaderReflectionCreate();\nIRObjectGetReflection(compiledObj, IRShaderStageCompute, refl);\n// ...\ns_RootSignature.Reset(4, 2); // Reflection reveals: 4 params\n\n// Without skill\ns_RootSignature.Reset(5, 2);" } ], "resources": [ { "title": "Game Porting Toolkit on GitHub", "url": "https://github.com/apple/game-porting-toolkit/", "type": "download", "description": "This repository includes a collection of agent skills to assist porting games to Apple platforms so you can produce higher-quality ports and ship on Apple platforms faster." }, { "title": "Download the Game Porting Toolkit", "url": "https://developer.apple.com/games/game-porting-toolkit/", "type": "documentation", "description": "The Game Porting Toolkit includes an updated set of tools that can help you accelerate porting your advanced games to Mac, and to get them up and running on iPad and iPhone.", "sosumiURL": "https://sosumi.ai/games/game-porting-toolkit/" } ], "path": "sessions/wwdc2026/357-speedrun-your-game-port-with-agentic-coding/", "files": { "metadata": "sessions/wwdc2026/357-speedrun-your-game-port-with-agentic-coding/metadata.json", "readme": "sessions/wwdc2026/357-speedrun-your-game-port-with-agentic-coding/README.md", "transcript": "sessions/wwdc2026/357-speedrun-your-game-port-with-agentic-coding/transcript.md", "transcriptJSON": "sessions/wwdc2026/357-speedrun-your-game-port-with-agentic-coding/transcript.json" } }