# \#metal

**URL:** https://forums.swift.org/tag/metal/729.md

[Latest](https://forums.swift.org/latest.md) · [Categories](https://forums.swift.org/categories.md) · [Tags](https://forums.swift.org/tags.md)

---

## [Swift on the GPU](https://forums.swift.org/t/swift-on-the-gpu/90299)

<div class="topic-metadata">

**Author:** [@drecothedev](https://forums.swift.org/u/drecothedev)\
**Replies:** 8\
**Last updated:** [November 14, 2026, 11:35am UTC](https://forums.swift.org/t/swift-on-the-gpu/90299 "2026-11-14T11:35:04Z")

</div>

With the increase in GPU capabilities and expectations, I started to think about the possibility of system level programming with Swift, specifically for the GPU. Something Similar to that of Mojo? I started to work on …

---

## [MetalHLO — StableHLO Execution on Apple Silicon (GPU + Neural Engine), built in Swift](https://forums.swift.org/t/metalhlo-stablehlo-execution-on-apple-silicon-gpu-neural-engine-built-in-swift/85209)

<div class="topic-metadata">

**Author:** [@pedronahum](https://forums.swift.org/u/pedronahum)\
**Replies:** 4\
**Last updated:** [June 9, 2026, 6:05am UTC](https://forums.swift.org/t/metalhlo-stablehlo-execution-on-apple-silicon-gpu-neural-engine-built-in-swift/85209 "2026-06-09T06:05:45Z")

</div>

Hi everyone, Some of you may remember my TaylorTorch post from a while back. I've been continuing to explore the intersection of Swift and deep learning, and today I'd like to share a new project: MetalHLO. The motivat…

---

## [Metal support](https://forums.swift.org/t/metal-support/87016)

<div class="topic-metadata">

**Author:** [@AlexSedykh](https://forums.swift.org/u/AlexSedykh)\
**Replies:** 6\
**Last updated:** [June 1, 2026, 3:37pm UTC](https://forums.swift.org/t/metal-support/87016 "2026-06-01T15:37:01Z")

</div>

So, when will Metal support a package manager? The use case is very simple. We have a C (C++) module that contains a header file with a core structure used in Swift targets and shaders. module CoreStructures { heade…

---

## [Livable: Make views into stunning animated gradient in one single line based on Metal](https://forums.swift.org/t/livable-make-views-into-stunning-animated-gradient-in-one-single-line-based-on-metal/86647)

<div class="topic-metadata">

**Author:** [@shindgew](https://forums.swift.org/u/shindgew)\
**Replies:** 0\
**Last updated:** [May 11, 2026, 10:36am UTC](https://forums.swift.org/t/livable-make-views-into-stunning-animated-gradient-in-one-single-line-based-on-metal/86647 "2026-05-11T10:36:36Z")

</div>

Introduce Livable Livable Make views livable. Build animated gradient like Apple Music background elegantly. YourView() .livable()￼ Image(.example) .resizble() .aspectRatio(contentMode: .…

---

## [SumoGUIMac: native macOS GUI for Eclipse SUMO, built with SwiftUI + Metal](https://forums.swift.org/t/sumoguimac-native-macos-gui-for-eclipse-sumo-built-with-swiftui-metal/86531)

<div class="topic-metadata">

**Author:** [@christofilojohn](https://forums.swift.org/u/christofilojohn)\
**Replies:** 4\
**Last updated:** [May 7, 2026, 10:41am UTC](https://forums.swift.org/t/sumoguimac-native-macos-gui-for-eclipse-sumo-built-with-swiftui-metal/86531 "2026-05-07T10:41:19Z")

</div>

Hi everyone, I’m building SumoGUIMac, an open-source native macOS GUI/viewer for Eclipse SUMO traffic-simulation workflows. The reason I am doing that is because sumogui has serious on Mac issues and is unusable in Taho…

---

## [Introducing Untold Engine — A 3D renderer written in Swift using Metal](https://forums.swift.org/t/introducing-untold-engine-a-3d-renderer-written-in-swift-using-metal/85702)

<div class="topic-metadata">

**Author:** [@haroldserrano](https://forums.swift.org/u/haroldserrano)\
**Replies:** 2\
**Last updated:** [March 31, 2026, 6:28pm UTC](https://forums.swift.org/t/introducing-untold-engine-a-3d-renderer-written-in-swift-using-metal/85702 "2026-03-31T18:28:50Z")

</div>

Hi everyone, I wanted to share a project I’ve been working on called Untold Engine—a 3D renderer written entirely in Swift using Metal. I started it as a way to better understand modern graphics systems, and over ti…

---

## [Metal compute shader work](https://forums.swift.org/t/metal-compute-shader-work/85496)

<div class="topic-metadata">

**Author:** [@s1rj1n](https://forums.swift.org/u/s1rj1n)\
**Replies:** 0\
**Last updated:** [March 23, 2026, 4:58am UTC](https://forums.swift.org/t/metal-compute-shader-work/85496 "2026-03-23T04:58:23Z")

</div>

Using Metal on Apple Silicon to compute search fro factors and primes….Ive been working on trying to make my Macbook Pro calculate as much as possible with prime calculations. Link to the Xcode project (to compile) and…

---

## [Let BuildToolPlugin replace default build rules](https://forums.swift.org/t/let-buildtoolplugin-replace-default-build-rules/62968)

<div class="topic-metadata">

**Author:** [@fuzzyhead](https://forums.swift.org/u/fuzzyhead)\
**Replies:** 5\
**Last updated:** [May 25, 2025, 8:59pm UTC](https://forums.swift.org/t/let-buildtoolplugin-replace-default-build-rules/62968 "2025-05-25T20:59:30Z")

</div>

It would be great if a BuildToolPlugin could specify that it replaces the default build rules for the files it handles. Specifically, I want to put Metal kernels for Core Image into a package. They need to be compiled w…

---

## [BuildToolPlugin not running on a target swift package dependency during project build in XCode](https://forums.swift.org/t/buildtoolplugin-not-running-on-a-target-swift-package-dependency-during-project-build-in-xcode/78668)

<div class="topic-metadata">

**Author:** [@hanstarj](https://forums.swift.org/u/hanstarj)\
**Replies:** 0\
**Last updated:** [March 19, 2025, 9:23pm UTC](https://forums.swift.org/t/buildtoolplugin-not-running-on-a-target-swift-package-dependency-during-project-build-in-xcode/78668 "2025-03-19T21:23:11Z")

</div>

Recently I've moved some graphics and UI code of my app into Swift Package for organization purpose, and am hitting various issues. For now, I'm trying to make the shader code in the package debuggable in my app, as SPM …

---

## [Metal com.Metal.CompletionQueueDispatch crash in Swift 6](https://forums.swift.org/t/metal-com-metal-completionqueuedispatch-crash-in-swift-6/76472)

<div class="topic-metadata">

**Author:** [@Will\_LB](https://forums.swift.org/u/Will_LB)\
**Replies:** 5\
**Last updated:** [December 11, 2024, 7:55pm UTC](https://forums.swift.org/t/metal-com-metal-completionqueuedispatch-crash-in-swift-6/76472 "2024-12-11T19:55:53Z")

</div>

I have a photo editing app which uses a simple Metal Render to display CIFilter output images. It works just fine in Swift 5 but in Swift 6 it crashes on starting the Metal command buffer with an error in the Queue : co…

---

## [Sending \[...\] risks causing data races and Metal completion handlers](https://forums.swift.org/t/sending-risks-causing-data-races-and-metal-completion-handlers/72518)

<div class="topic-metadata">

**Author:** [@Andropov](https://forums.swift.org/u/Andropov)\
**Replies:** 0\
**Last updated:** [June 16, 2024, 10:07am UTC](https://forums.swift.org/t/sending-risks-causing-data-races-and-metal-completion-handlers/72518 "2024-06-16T10:07:55Z")

</div>

I've run into an issue where I know a variable can be safely sent, as it's been declared locally and I'm attempting to send it on the completion handler of the only block of code that writes to it, but I can't think of a…

---

## [Use rowBytes method from MPSMatrixDescriptor for matrix multiplication](https://forums.swift.org/t/use-rowbytes-method-from-mpsmatrixdescriptor-for-matrix-multiplication/71513)

<div class="topic-metadata">

**Author:** [@wigging](https://forums.swift.org/u/wigging)\
**Replies:** 11\
**Last updated:** [May 1, 2024, 12:11am UTC](https://forums.swift.org/t/use-rowbytes-method-from-mpsmatrixdescriptor-for-matrix-multiplication/71513 "2024-05-01T00:11:48Z")

</div>

I'm using Metal Performance Shaders to perform matrix multiplication as shown below. I know that such a small matrix space is not well suited for Metal; but I'm using small matrices so I can print the result to check the…

---

## [Swift struct to Metal?](https://forums.swift.org/t/swift-struct-to-metal/59939)

<div class="topic-metadata">

**Author:** [@bastie](https://forums.swift.org/u/bastie)\
**Replies:** 1\
**Last updated:** [August 28, 2022, 2:11pm UTC](https://forums.swift.org/t/swift-struct-to-metal/59939 "2022-08-28T14:11:23Z")

</div>

Hello, I begin / test a little with Swift and Metal (only for compute shaders). All I see (in samples) is working with primitive datatypes but I work with struct or classes. Can I and How move data between Swift and Met…
