View in English

  • Apple Developer
    • Get Started

    Explore Get Started

    • Overview
    • Learn
    • Apple Developer Program

    Stay Updated

    • Latest News
    • Hello Developer
    • Platforms

    Explore Platforms

    • Apple Platforms
    • iOS
    • iPadOS
    • macOS
    • tvOS
    • visionOS
    • watchOS
    • App Store

    Featured

    • Design
    • Distribution
    • Games
    • Accessories
    • Web
    • Home
    • CarPlay
    • Technologies

    Explore Technologies

    • Overview
    • Xcode
    • Swift
    • SwiftUI

    Featured

    • Accessibility
    • App Intents
    • Apple Intelligence
    • Games
    • Machine Learning & AI
    • Security
    • Xcode Cloud
    • Community

    Explore Community

    • Overview
    • Meet with Apple events
    • Community-driven events
    • Developer Forums
    • Open Source

    Featured

    • WWDC
    • Swift Student Challenge
    • Developer Stories
    • App Store Awards
    • Apple Design Awards
    • Apple Developer Centers
    • Documentation

    Explore Documentation

    • Documentation Library
    • Technology Overviews
    • Sample Code
    • Human Interface Guidelines
    • Videos

    Release Notes

    • Featured Updates
    • iOS
    • iPadOS
    • macOS
    • watchOS
    • visionOS
    • tvOS
    • Xcode
    • Downloads

    Explore Downloads

    • All Downloads
    • Operating Systems
    • Applications
    • Design Resources

    Featured

    • Xcode
    • TestFlight
    • Fonts
    • SF Symbols
    • Icon Composer
    • Support

    Explore Support

    • Overview
    • Help Guides
    • Developer Forums
    • Feedback Assistant
    • Contact Us

    Featured

    • Account Help
    • App Review Guidelines
    • App Store Connect Help
    • Upcoming Requirements
    • Agreements and Guidelines
    • System Status
  • Quick Links

    • Events
    • News
    • Forums
    • Sample Code
    • Videos
 

Vídeos

Abrir menu Fechar menu
  • Coleções
  • Todos os vídeos
  • Sobre

Mais vídeos

  • Sobre
  • Código
  • Port advanced games to Apple platforms

    Discover how simple it can be to reach players on Apple platforms worldwide. We'll show you how to evaluate your Windows executable on Apple silicon, start your game port with code samples, convert your shader code to Metal, and bring your game to Mac, iPhone, and iPad. Explore enhanced Metal tools that understand HLSL shaders to validate, debug, and profile your ported shaders on Metal.

    Capítulos

    • 0:00 - Intro
    • 2:06 - Evaluate your game
    • 2:07 - Port your game
    • 6:22 - Configuration
    • 9:29 - Shaders
    • 11:36 - Graphics
    • 16:06 - Input and rumble
    • 17:56 - Audio
    • 18:53 - Cloud saves
    • 21:28 - Debug and profile with Metal tools
    • 28:39 - Wrap-up

    Recursos

    • Simplifying GPU resource management with residency sets
    • Validating your app’s Metal API usage
    • Validating your app’s Metal shader usage
    • Download the Game Porting Toolkit
    • Forum: Graphics & Games
    • Get started with Metal shader converter
    • Metal Developer Resources
    • Getting started with Metal-cpp
    • Rendering reflections in real time using ray tracing
    • Metal
      • Vídeo HD
      • Vídeo SD

    Vídeos relacionados

    WWDC24

    • Design advanced games for Apple platforms

    WWDC23

    • Bring your game to Mac, Part 2: Compile your shaders
    • Bring your game to Mac, Part 3: Render with Metal

    Tech Talks

    • Bring your high-end game to iPhone 15 Pro
    • Discover new Metal profiling tools for M3 and A17 Pro

    WWDC22

    • Program Metal in C++ with metal-cpp

    WWDC21

    • Discover geometry-aware audio with the Physical Audio Spatialization Engine (PHASE)
    • Discover Metal debugging, profiling, and asset creation tools

    WWDC20

    • Advancements in Game Controllers

    WWDC19

    • Introducing Core Haptics
  • Buscar neste vídeo...
    • 12:51 - Build a residency set

      // Build a residency set.
      
      // Create a new residency set.
      MTL::ResidencySet* residencySet;
      residencySet = device->newResidencySet(residencySetDescriptor, &error);
      
      // Add to main command queue.
      commandQueue->addResidencySet(residencySet);
      
      // Add allocations and commit changes.
      residencySet->addAllocation(texture);
      residencySet->addAllocation(buffer);
      residencySet->addAllocation(heap);
      residencySet->commit();
        
        // Use residency sets.
      
      // Allocate and encode a command buffer.
      MTL::CommandBuffer* commandBuffer = commandQueue->commandBuffer();
      
      // ...
      
      // The command queue marks residency for the set for this command buffer.
      commandBuffer->commit();
    • 14:46 - Upscale image with MetalFX

      // Upscale image with MetalFX.
      
      mfxTemporalScaler->setColorTexture(currentFrameColor);
      mfxTemporalScaler->setDepthTexture(currentFrameDepth);
      mfxTemporalScaler->setMotionTexture(currentFrameMotion);
      mfxTemporalScaler->setOutputTexture(currentFrameUpscaledColor);
      
      mfxTemporalScaler->setJitterOffsetX(currentFrameJitter.x);
      mfxTemporalScaler->setJitterOffsetY(currentFrameJitter.y);
      
      mfxTemporalScaler->setReactiveMaskTexture(currentFrameReactiveMask);
      
      mfxTemporalScaler->encodeToCommandBuffer(commandBuffer);
    • 19:53 - Use the cloud save manager

      // Use the cloud save manager.
      
      CloudSaveManager* cloudSaveManager =
          [[CloudSaveManager alloc] initWithCloudIdentifier:@"iCloud.com.mycompany.mygame"
                                    saveDirectoryURL:[NSURL fileURLWithPath:@"/path/to/saves"]];
      
      [cloudSaveManager syncWithCompletionHandler:^(BOOL conflictDetected, NSError *error) {
          // Handle conflicts or errors, for example, by presenting a choice.
      }];
      
      // Access and write saves
      [cloudSaveManager uploadWithCompletionHandler:^(BOOL conflictDetected, NSError *error) {
          // Handle errors and conflicts or delay until the next sync.
      }];

Developer Footer

  • Vídeos
  • WWDC24
  • Port advanced games to Apple platforms
  • Open Menu Close Menu
    • iOS
    • iPadOS
    • macOS
    • tvOS
    • visionOS
    • watchOS
    • App Store
    Open Menu Close Menu
    • Swift
    • SwiftUI
    • Swift Playground
    • TestFlight
    • Xcode
    • Xcode Cloud
    • Icon Composer
    • SF Symbols
    Open Menu Close Menu
    • Accessibility
    • Accessories
    • Apple Intelligence
    • Audio & Video
    • Augmented Reality
    • Business
    • Design
    • Distribution
    • Education
    • Games
    • Health & Fitness
    • In-App Purchase
    • Localization
    • Maps & Location
    • Machine Learning & AI
    • Security
    • Safari & Web
    Open Menu Close Menu
    • Documentation
    • Downloads
    • Sample Code
    • Videos
    Open Menu Close Menu
    • Help Guides & Articles
    • Contact Us
    • Forums
    • Feedback & Bug Reporting
    • System Status
    Open Menu Close Menu
    • Apple Developer
    • App Store Connect
    • Certificates, IDs, & Profiles
    • Feedback Assistant
    Open Menu Close Menu
    • Apple Developer Program
    • Apple Developer Enterprise Program
    • App Store Small Business Program
    • MFi Program
    • Mini Apps Partner Program
    • News Partner Program
    • Video Partner Program
    • Security Bounty Program
    • Security Research Device Program
    Open Menu Close Menu
    • Meet with Apple
    • Apple Developer Centers
    • App Store Awards
    • Apple Design Awards
    • Apple Developer Academies
    • WWDC
    Read the latest news.
    Get the Apple Developer app.
    Copyright © 2026 Apple Inc. All rights reserved.
    Terms of Use Privacy Policy Agreements and Guidelines