How to use MetalPeformancePrimitives

I am trying to learn the new Metal Peformance Primitives APIs. I have added the MetalPeformancePrimitives framework and included the header in my shader code as per documentation

#include <MetalPeformancePrimitives/MetalPeformancePrimitives.h>

Unfortunately, Xcode complains that the header cannot be found. How do I include it properly?

I am using Xcode 26 on Tahoe. The MetalPeformancePrimitives framework is present on my machine and I can inspect the headers in the filesystem.

Hello,

What versions of macOS 26.x and Xcode 26.x are you using?

Was your Xcode project created from a Metal 4 template or is it a modification of a Metal 3 project?

Otherwise, that include directive looks correct.

How to use MetalPeformancePrimitives
 
 
Q