Symbols: 37.5% of Apple's iOS API (100 of 267, exact) · Rows: 3: 1 ✅ 1 🟡 1 ❌ · iOS: 16.0+
Area: GPU · Apple: MetalFX · Issues: area:gpu
- Approach: isim's own upscalers, on the CPU (
isim/frameworks/MetalFX/MetalFX.m). Encoding adds the work to isim's Metal command buffer.- Spatial scaler: after AMD FSR 1.
- An edge-adaptive Lanczos-2 upscale over a 4x4 neighborhood (EASU). The kernel narrows across the luminance gradient and widens along it, and the result is clamped to the four nearest pixels.
- Then contrast-adaptive sharpening (RCAS, sharpness 0.8).
- HDR colors go through a reversible tonemap.
- Temporal scaler: each frame is upscaled at its jitter offset. It is blended (10%) into the previous output,
reprojected through the motion vectors (scaled by
motionVectorScaleX/Yto input pixels; a vector points from the pixel to where it was in the previous frame) and clamped to the frame's 3x3 neighborhood.resetstarts over.
- Spatial scaler: after AMD FSR 1.
- Objective-C / C interface: Apple's headers in
isim/sdk-src/Frameworks/MetalFX, with Apple's Swift names. - Versus Apple's Simulator:
- The images are isim's upscales, not Apple's.
- The temporal scaler does not use depth, exposure or the reactive mask.
- The iOS 26 frame interpolator, the temporal denoised scaler and the Metal 4 forms are not implemented yet.
| API / feature | Status | iOS | Notes |
|---|---|---|---|
MTLFXSpatialScalerDescriptor (formats, sizes, colorProcessingMode, makeSpatialScaler(device:), supportsDevice), MTLFXSpatialScaler / MTLFXSpatialScalerBase (textures, content size, usages, fence, encode(commandBuffer:)) |
✅ | ≤17 | adapted: after FSR 1 (EASU + RCAS); tested (MPSTest, test_mps; HelloMetal, test_metal) |
MTLFXTemporalScalerDescriptor (formats, sizes, content scales, auto exposure, reactive mask and motion vector options, makeTemporalScaler(device:), supportsDevice, supported scales), MTLFXTemporalScaler / MTLFXTemporalScalerBase (color, depth, motion, exposure and reactive textures, content offsets, jitter, motion vector scale, reset, isDepthReversed, preExposure, encode(commandBuffer:)) |
🟡 | ≤17 | adapted: depth, exposure and the reactive mask are accepted but not used; tested (MPSTest) |
MTLFXFrameInterpolator, MTLFXTemporalDenoisedScaler, MTL4FX* |
❌ | 26.0 | not yet |
167 symbols Apple documents for iOS that isim does not have (exact; Apple snapshot 2026-10-14). Each links to Apple's documentation.
List
MTL4FXFrameInterpolatorfunc encode(commandBuffer: any MTL4CommandBuffer)MTL4FXSpatialScalerfunc encode(commandBuffer: any MTL4CommandBuffer)MTL4FXTemporalDenoisedScalerfunc encode(commandBuffer: any MTL4CommandBuffer)MTL4FXTemporalScalerfunc encode(commandBuffer: any MTL4CommandBuffer)MTLFXFrameInterpolatableScalerMTLFXFrameInterpolatorfunc encode(commandBuffer: any MTLCommandBuffer)MTLFXFrameInterpolatorBasevar aspectRatio: Floatvar colorTexture: (any MTLTexture)?var colorTextureFormat: MTLPixelFormatvar colorTextureUsage: MTLTextureUsagevar contentHeight: Intvar contentWidth: Intvar deltaTime: Floatvar depthContentOffsetX: Intvar depthContentOffsetY: Intvar depthTexture: (any MTLTexture)?var depthTextureFormat: MTLPixelFormatvar depthTextureUsage: MTLTextureUsagevar distortionHeight: Intvar distortionOffsetX: Intvar distortionOffsetY: Intvar distortionTexture: (any MTLTexture)?var distortionWidth: Intvar farPlane: Floatvar fence: (any MTLFence)?var fieldOfView: Floatvar inputHeight: Intvar inputWidth: Intvar isDepthReversed: Boolvar isUITextureComposited: Boolvar jitterOffsetX: Floatvar jitterOffsetY: Floatvar motionContentOffsetX: Intvar motionContentOffsetY: Intvar motionTexture: (any MTLTexture)?var motionTextureFormat: MTLPixelFormatvar motionTextureUsage: MTLTextureUsagevar motionVectorScaleX: Floatvar motionVectorScaleY: Floatvar nearPlane: Floatvar outputHeight: Intvar outputOffsetX: Intvar outputOffsetY: Intvar outputTexture: (any MTLTexture)?var outputTextureFormat: MTLPixelFormatvar outputTextureUsage: MTLTextureUsagevar outputWidth: Intvar prevColorTexture: (any MTLTexture)?var shouldResetHistory: Boolvar uiTexture: (any MTLTexture)?var uiTextureFormat: MTLPixelFormatvar uiTextureUsage: MTLTextureUsagevar viewToClipMatrix: simd_float4x4var worldToViewMatrix: simd_float4x4MTLFXFrameInterpolatorDescriptorvar colorTextureFormat: MTLPixelFormatvar depthTextureFormat: MTLPixelFormatvar inputHeight: Intvar inputWidth: Intvar isDistortionTextureEnabled: Boolfunc makeFrameInterpolator(device: any MTLDevice) -> (any MTLFXFrameInterpolator)?func makeFrameInterpolator(device: any MTLDevice, compiler: any MTL4Compiler) -> (any MTL4FXFrameInterpolator)?var motionTextureFormat: MTLPixelFormatvar outputHeight: Intvar outputTextureFormat: MTLPixelFormatvar outputWidth: Intvar requiresPrevColorTexture: Boolvar scaler: (any MTLFXFrameInterpolatableScaler)?class func supportsDevice(any MTLDevice) -> Boolclass func supportsMetal4FX(any MTLDevice) -> Boolvar uiTextureFormat: MTLPixelFormatfunc makeSpatialScaler(device: any MTLDevice, compiler: any MTL4Compiler) -> (any MTL4FXSpatialScaler)?class func supportsMetal4FX(any MTLDevice) -> BoolMTLFXTemporalDenoisedScalerfunc encode(commandBuffer: any MTLCommandBuffer)MTLFXTemporalDenoisedScalerBasevar colorTexture: (any MTLTexture)?var colorTextureFormat: MTLPixelFormatvar colorTextureUsage: MTLTextureUsagevar denoiseStrengthMaskTexture: (any MTLTexture)?var denoiseStrengthMaskTextureFormat: MTLPixelFormatvar denoiseStrengthMaskTextureUsage: MTLTextureUsagevar depthTexture: (any MTLTexture)?var depthTextureFormat: MTLPixelFormatvar depthTextureUsage: MTLTextureUsagevar diffuseAlbedoTexture: (any MTLTexture)?var diffuseAlbedoTextureFormat: MTLPixelFormatvar diffuseAlbedoTextureUsage: MTLTextureUsagevar exposureTexture: (any MTLTexture)?var fence: (any MTLFence)?var inputContentMaxScale: Floatvar inputContentMinScale: Floatvar inputHeight: Intvar inputWidth: Intvar isDepthReversed: Boolvar jitterOffsetX: Floatvar jitterOffsetY: Floatvar motionTexture: (any MTLTexture)?var motionTextureFormat: MTLPixelFormatvar motionTextureUsage: MTLTextureUsagevar motionVectorScaleX: Floatvar motionVectorScaleY: Floatvar normalTexture: (any MTLTexture)?var normalTextureFormat: MTLPixelFormatvar normalTextureUsage: MTLTextureUsagevar outputHeight: Intvar outputTexture: (any MTLTexture)?var outputTextureFormat: MTLPixelFormatvar outputTextureUsage: MTLTextureUsagevar outputWidth: Intvar preExposure: Floatvar reactiveMaskTexture: (any MTLTexture)?var reactiveMaskTextureFormat: MTLPixelFormatvar reactiveMaskTextureUsage: MTLTextureUsagevar reactiveTextureUsage: MTLTextureUsagevar roughnessTexture: (any MTLTexture)?var roughnessTextureFormat: MTLPixelFormatvar roughnessTextureUsage: MTLTextureUsagevar shouldResetHistory: Boolvar specularAlbedoTexture: (any MTLTexture)?var specularAlbedoTextureFormat: MTLPixelFormatvar specularAlbedoTextureUsage: MTLTextureUsagevar specularHitDistanceTexture: (any MTLTexture)?var specularHitDistanceTextureFormat: MTLPixelFormatvar specularHitDistanceTextureUsage: MTLTextureUsagevar transparencyOverlayTexture: (any MTLTexture)?var transparencyOverlayTextureFormat: MTLPixelFormatvar transparencyOverlayTextureUsage: MTLTextureUsagevar viewToClipMatrix: simd_float4x4var worldToViewMatrix: simd_float4x4MTLFXTemporalDenoisedScalerDescriptorvar colorTextureFormat: MTLPixelFormatvar denoiseStrengthMaskTextureFormat: MTLPixelFormatvar depthTextureFormat: MTLPixelFormatvar diffuseAlbedoTextureFormat: MTLPixelFormatvar inputHeight: Intvar inputWidth: Intvar isAutoExposureEnabled: Boolvar isDenoiseStrengthMaskTextureEnabled: Boolvar isReactiveMaskTextureEnabled: Boolvar isSpecularHitDistanceTextureEnabled: Boolvar isTransparencyOverlayTextureEnabled: Boolfunc makeTemporalDenoisedScaler(device: any MTLDevice) -> (any MTLFXTemporalDenoisedScaler)?func makeTemporalDenoisedScaler(device: any MTLDevice, compiler: any MTL4Compiler) -> (any MTL4FXTemporalDenoisedScaler)?var motionTextureFormat: MTLPixelFormatvar normalTextureFormat: MTLPixelFormatvar outputHeight: Intvar outputTextureFormat: MTLPixelFormatvar outputWidth: Intvar reactiveMaskTextureFormat: MTLPixelFormatvar requiresSynchronousInitialization: Boolvar roughnessTextureFormat: MTLPixelFormatvar specularAlbedoTextureFormat: MTLPixelFormatvar specularHitDistanceTextureFormat: MTLPixelFormatclass func supportedInputContentMaxScale(device: any MTLDevice) -> Floatclass func supportedInputContentMinScale(device: any MTLDevice) -> Floatclass func supportsDevice(any MTLDevice) -> Boolclass func supportsMetal4FX(any MTLDevice) -> Boolvar transparencyOverlayTextureFormat: MTLPixelFormatfunc makeTemporalScaler(device: any MTLDevice, compiler: any MTL4Compiler) -> (any MTL4FXTemporalScaler)?class func supportsMetal4FX(any MTLDevice) -> Bool