One Logo Pool Ball
MetalPerformanceShaders · IOS API REFERENCE

MPSNDArrayBinaryPrimaryGradientKernel

class · iOS 13.0+ · SDK 27.1

class MPSNDArrayBinaryPrimaryGradientKernel

Members (4)

method · iOS 13.0+

encode

TypeScript
encodeToPrimarySourceArraySecondarySourceArraySourceGradientGradientState(cmdBuf: SDKHandle, primarySourceArray: MPSNDArray, secondarySourceArray: MPSNDArray, gradient: MPSNDArray, state: MPSState): MPSNDArray
Swift declaration
func encode(to cmdBuf: any MTLCommandBuffer, primarySourceArray: MPSNDArray, secondarySourceArray: MPSNDArray, sourceGradient gradient: MPSNDArray, gradientState state: MPSState) -> MPSNDArray
method · iOS 13.0+

encode

TypeScript
encodeToPrimarySourceArraySecondarySourceArraySourceGradientGradientStateDestinationArray(cmdBuf: SDKHandle, primarySourceArray: MPSNDArray, secondarySourceArray: MPSNDArray, gradient: MPSNDArray, state: MPSState, destination: MPSNDArray): void
Swift declaration
func encode(to cmdBuf: any MTLCommandBuffer, primarySourceArray: MPSNDArray, secondarySourceArray: MPSNDArray, sourceGradient gradient: MPSNDArray, gradientState state: MPSState, destinationArray destination: MPSNDArray)
init · iOS 13.0+

init

TypeScript
static initCoderDevice(coder: _Foundation_NSCoder, device: SDKHandle): MPSNDArrayBinaryPrimaryGradientKernel
Swift declaration
init(coder: NSCoder, device: any MTLDevice)
init · iOS 13.0+

init

TypeScript
static initDevice(device: SDKHandle): MPSNDArrayBinaryPrimaryGradientKernel
Swift declaration
init(device: any MTLDevice)

Skipped declarations

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

MPSNDArrayBinaryPrimaryGradientKernel.init()

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

All MetalPerformanceShaders types →