CVPixelBufferAttributes.AllocateWithIOSurface and MetalCompatibility are not exposed on the macOS TFM, but they are available upstream:
CVPixelBufferAttributes attributes = new();
attributes.Dictionary.SetValueForKey(NSNumber.FromBoolean(true), new NSString(CVPixelBuffer.MetalCompatibilityKey));
attributes.Dictionary.SetValueForKey(NSNumber.FromBoolean(true), new NSString(CVPixelBuffer.IOSurfacePropertiesKey));