Skip to content

CVPixelBufferAttributes.AllocateWithIOSurface and MetalCompatibility are unavailable on macOS #24584

@jeremy-visionaid

Description

@jeremy-visionaid

Apple platform

macOS

Framework version

net10.0-*

Affected platform version

10.0.102

Description

CVPixelBufferAttributes.AllocateWithIOSurface and MetalCompatibility are not exposed on the macOS TFM, but they are available upstream:

https://developer.apple.com/documentation/corevideo/kcvpixelbuffermetalcompatibilitykey?language=objc
https://developer.apple.com/documentation/corevideo/kcvpixelbufferiosurfacepropertieskey?language=objc

Steps to Reproduce

N/A

Did you find any workaround?

        CVPixelBufferAttributes attributes = new();
        attributes.Dictionary.SetValueForKey(NSNumber.FromBoolean(true), new NSString(CVPixelBuffer.MetalCompatibilityKey));
        attributes.Dictionary.SetValueForKey(NSNumber.FromBoolean(true), new NSString(CVPixelBuffer.IOSurfacePropertiesKey));

Relevant log output

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions