Contents

makeSpatialScaler(device:compiler:)

Creates a spatial scaler instance for a Metal device.

Declaration

func makeSpatialScaler(device: any MTLDevice, compiler: any MTL4Compiler) -> (any MTL4FXSpatialScaler)?

Parameters

  • device:

    The Metal device that creates the spatial scaler.

  • compiler:

    A compiler instance this method can use to build pipeline state objects.

Return Value

A new spatial scaler instance upon success, or nil otherwise.