init(entryCountPerSourceChannel:destinationChannelCount:data:)
Returns a new multidimensional lookup table.
Declaration
init<T>(entryCountPerSourceChannel: [UInt8], destinationChannelCount: Int, data: T) where T : AccelerateBuffer, T.Element == UInt16Parameters
- entryCountPerSourceChannel:
An array that contains the number of table entries for each dimension of the lookup table.
- destinationChannelCount:
The number of destination channels.
- data:
The lookup table data. The lookup table must contain the product of the values in Destinationchannelcount multiplied by Destinationchannelcount.
Discussion
Supply the values in data in the range 0 ... 65535, the function interprets the values as 0 ... 1 by dividing by 65535.