One Logo Pool Ball
MetalPerformanceShaders · IOS API REFERENCE

MPSImageConvolution

class · iOS 9.0+ · SDK 27.1

class MPSImageConvolution

Members (6)

init · iOS 11.0+

init

TypeScript
static initCoderDevice(aDecoder: _Foundation_NSCoder, device: SDKHandle): (MPSImageConvolution) | null
Swift declaration
init?(coder aDecoder: NSCoder, device: any MTLDevice)
init · iOS 9.0+

init

TypeScript
static initDeviceKernelWidthKernelHeightWeights(device: SDKHandle, kernelWidth: number, kernelHeight: number, kernelWeights: SDKHandle): MPSImageConvolution
Swift declaration
init(device: any MTLDevice, kernelWidth: Int, kernelHeight: Int, weights kernelWeights: UnsafePointer<Float>)
get · iOS 9.0+

bias

TypeScript
get bias(): number
Swift declaration
var bias: Float { get set }
set · iOS 9.0+

bias

TypeScript
set bias(value: number)
Swift declaration
var bias: Float { get set }
get · iOS 9.0+

kernelHeight

TypeScript
get kernelHeight(): number
Swift declaration
var kernelHeight: Int { get }
get · iOS 9.0+

kernelWidth

TypeScript
get kernelWidth(): number
Swift declaration
var kernelWidth: Int { get }

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

MPSImageConvolution.init()

inherited init: cannot prove legal (class declares 1 custom initializer)

All MetalPerformanceShaders types →