Initializer

init(device:kernelSize:)

Initializes a normalization kernel in a channel.

Declaration

init(device: MTLDevice, kernelSize: Int)

Parameters

device

The device the filter will run on.

kernelSize

The size of the kernel, in both x and y dimensions.

Return Value

A valid MPSCNNCrossChannelNormalization object or nil, if failure.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software