Interface MPSNDArrayAllocator
-
- All Superinterfaces:
NSCoding,NSCopying,NSSecureCoding
public interface MPSNDArrayAllocator extends NSSecureCoding, NSCopying
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MPSNDArrayarrayForCommandBufferArrayDescriptorKernel(MTLCommandBuffer cmdBuf, MPSNDArrayDescriptor descriptor, MPSKernel kernel)Create a new MPSNDArray See class description for sample implementation-
Methods inherited from interface apple.foundation.protocol.NSCoding
encodeWithCoder, initWithCoder
-
Methods inherited from interface apple.foundation.protocol.NSCopying
copyWithZone
-
Methods inherited from interface apple.foundation.protocol.NSSecureCoding
_supportsSecureCoding
-
-
-
-
Method Detail
-
arrayForCommandBufferArrayDescriptorKernel
MPSNDArray arrayForCommandBufferArrayDescriptorKernel(MTLCommandBuffer cmdBuf, MPSNDArrayDescriptor descriptor, MPSKernel kernel)
Create a new MPSNDArray See class description for sample implementation- Parameters:
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.- Returns:
- A valid MPSNDArray or MPSTemporaryNDArray. It will be automatically released when the command buffer completes.
-
-