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
 

Videos

Abrir menú Cerrar menú
  • Colecciones
  • Todos los videos
  • Información

Más videos

  • Información
  • Código
  • Bring your Metal app to Apple silicon Macs

    Meet the Tile Based Deferred Rendering (TBDR) GPU architecture for Apple silicon Macs — the heart of your Metal app or game's graphics performance. Learn how you can translate or port your graphics-intensive app over to Apple silicon, and how to take advantage of TBDR and Metal when building natively for the platform. We'll look at how TBDR compares with the Immediate Mode Rendering pipeline of older Macs, go through common issues you may face when bringing an app or game over, and explore how to offer incredible performance when building with the native SDK.

    We've designed this session in tandem with “Optimize Metal Performance for Apple silicon Macs.” After you've watched this session be sure to check that out next.

    Recursos

    • Learn more about Apple Silicon
    • Metal
      • Video HD
      • Video SD

    Videos relacionados

    WWDC23

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

    WWDC20

    • Build GPU binaries with Metal
    • Debug GPU-side errors in Metal
    • Gain insights into your Metal app with Xcode 12
    • Harness Apple GPUs with Metal
    • Optimize Metal apps and games with GPU counters
    • Optimize Metal Performance for Apple silicon Macs
    • Port your Mac app to Apple silicon
  • Buscar este video…
    • 14:23 - Metal feature detection

      {
          self.appleGPUFeatures = metalDevice.supportsFamily(.apple5)
          
          self.simdgroupSize = computePipeline.threadExecutionWidth
          
          self.isLowPower = metalDevice.isLowPower
      }
    • 20:58 - Enabling position invariance

      // Renderer.swift
      let options = MTLCompileOptions()
      options.preserveInvariance = true
      
      library = try device.makeLibrary(source: sourceString,
                                       options: options)
      
      
      // vertex.metal
      struct VertexOut
      {
          float4 pos [[position, invariant]];
          float data;
      };
    • 24:25 - Threadgroup synchronization

      // Correct synchronization
      
      // launched with threadgroup size = 64
      kernel void kernelMain(uint tid [[ thread_index_in_threadgroup ]],
                             uint simd_size [[ threads_per_simdgroup ]],
                             device uint * res [[ buffer(0) ]])
      {
          threadgroup uint buf[64];
          
          buf[tid] = initBuffer(tid);
      
          if (simd_size == 64u)
              simdgroup_barrier(mem_flags::mem_threadgroup);
          else
              threadgroup_barrier(mem_flags::mem_threadgroup);
      
          uint index = (tid < 32) ? tid + 32 : tid - 32;
          res[tid] = buf[tid] + buf[index];
      }

Developer Footer

  • Videos
  • WWDC20
  • Bring your Metal app to Apple silicon Macs
  • 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