public interface MPSNDArrayAllocator extends NSSecureCoding, NSCopying
| Modifier and Type | Method and Description |
|---|---|
MPSNDArray |
arrayForCommandBufferArrayDescriptorKernel(MTLCommandBuffer cmdBuf,
MPSNDArrayDescriptor descriptor,
MPSKernel kernel)
Create a new MPSNDArray
|
_supportsSecureCodingencodeWithCoder, initWithCodercopyWithZoneMPSNDArray arrayForCommandBufferArrayDescriptorKernel(MTLCommandBuffer cmdBuf, MPSNDArrayDescriptor descriptor, MPSKernel kernel)
See class description for sample implementation
cmdBuf - The MTLCommandBuffer on which the array will be initialized.
cmdBuf.device encodes the MTLDevice.descriptor - A MPSNDArrayDescriptor containing the array parameters to use.
This format is the result of your MPSPadding policy.kernel - The kernel that will overwrite the array returned by the filter.
Note that the MPS implementations of this protocol don't need
this field. It is provided for your convenience.