MTL4FXTemporalDenoisedScaler initialization

I’m trying to use MTL4FXTemporalDenoisedScaler, and I’m seeing a crash during initialization even with a very simple sample app.

I created a minimal sample here: https://github.com/tatsuya-ogawa/MetalFXInitExample

The exception is:

NSException: "-[AGXG16XFamilyHeap baseObject]: unrecognized selector sent to instance ..."

What I found is: • This works: descriptor.makeTemporalDenoisedScaler(device: device) • This crashes: descriptor.makeTemporalDenoisedScaler(device: device, compiler: metal4Compiler)

So the issue seems to happen only with the Metal4FX version.

For testing, I’m using an iPhone 15 Pro. According to the Metal Feature Set Tables, MetalFX denoised upscaling should be supported on Apple9 and later, so I believe the device itself should meet the requirements.

Reference: https://developer.apple.com/metal/Metal-Feature-Set-Tables.pdf

Has anyone seen this before, or knows what might be causing it? I’d appreciate any advice.

Thanks.

MTL4FXTemporalDenoisedScaler initialization
 
 
Q