Class MPSCNNMultiaryKernel

All Implemented Interfaces:
NSCoding, NSObjectProtocol, NSSecureCoding, ObjCProtocol

public class MPSCNNMultiaryKernel
extends MPSKernel
Since:
Available in iOS 13.0 and later.
  • Constructor Details

    • MPSCNNMultiaryKernel

      public MPSCNNMultiaryKernel()
    • MPSCNNMultiaryKernel

      protected MPSCNNMultiaryKernel​(NSObject.Handle h, long handle)
    • MPSCNNMultiaryKernel

      protected MPSCNNMultiaryKernel​(NSObject.SkipInit skipInit)
    • MPSCNNMultiaryKernel

      public MPSCNNMultiaryKernel​(MTLDevice device, long sourceCount)
    • MPSCNNMultiaryKernel

      public MPSCNNMultiaryKernel​(NSCoder decoder, MTLDevice device)
    • MPSCNNMultiaryKernel

      public MPSCNNMultiaryKernel​(NSCoder coder)
  • Method Details

    • getSourceCount

      public long getSourceCount()
    • getClipRect

      public MTLRegion getClipRect()
    • setClipRect

      public void setClipRect​(MTLRegion v)
    • getDestinationFeatureChannelOffset

      public long getDestinationFeatureChannelOffset()
    • setDestinationFeatureChannelOffset

      public void setDestinationFeatureChannelOffset​(long v)
    • isBackwards

      public boolean isBackwards()
    • isStateModified

      public boolean isStateModified()
    • getPadding

      public MPSNNPadding getPadding()
    • setPadding

      public void setPadding​(MPSNNPadding v)
    • getDestinationImageAllocator

      public MPSImageAllocator getDestinationImageAllocator()
    • setDestinationImageAllocator

      public void setDestinationImageAllocator​(MPSImageAllocator v)
    • supportsSecureCoding

      public static boolean supportsSecureCoding()
    • init

      protected long init​(MTLDevice device, long sourceCount)
    • offsetAtIndex

      public MPSOffset offsetAtIndex​(long index)
    • setOffset

      public void setOffset​(MPSOffset offset, long index)
    • sourceFeatureChannelOffsetAtIndex

      public long sourceFeatureChannelOffsetAtIndex​(long index)
    • setSourceFeatureChannelOffset

      public void setSourceFeatureChannelOffset​(long offset, long index)
    • sourceFeatureChannelMaxCountAtIndex

      public long sourceFeatureChannelMaxCountAtIndex​(long index)
    • setSourceFeatureChannelMaxCount

      public void setSourceFeatureChannelMaxCount​(long count, long index)
    • edgeModeAtIndex

      public MPSImageEdgeMode edgeModeAtIndex​(long index)
    • setEdgeMode

      public void setEdgeMode​(MPSImageEdgeMode edgeMode, long index)
    • kernelWidthAtIndex

      public long kernelWidthAtIndex​(long index)
    • setKernelWidth

      public void setKernelWidth​(long width, long index)
    • kernelHeightAtIndex

      public long kernelHeightAtIndex​(long index)
    • setKernelHeight

      public void setKernelHeight​(long height, long index)
    • strideInPixelsXatIndex

      public long strideInPixelsXatIndex​(long index)
    • setStrideInPixelsX

      public void setStrideInPixelsX​(long stride, long index)
    • strideInPixelsYatIndex

      public long strideInPixelsYatIndex​(long index)
    • setStrideInPixelsY

      public void setStrideInPixelsY​(long stride, long index)
    • dilationRateXatIndex

      public long dilationRateXatIndex​(long index)
    • setDilationRateX

      public void setDilationRateX​(long dilationRate, long index)
    • dilationRateYatIndex

      public long dilationRateYatIndex​(long index)
    • setDilationRateY

      public void setDilationRateY​(long dilationRate, long index)
    • init

      protected long init​(NSCoder decoder, MTLDevice device)
      Overrides:
      init in class MPSKernel
    • encode

      public void encode​(MTLCommandBuffer commandBuffer, NSArray<MPSImage> sourceImages, MPSImage destinationImage)
    • encodeBatch

      public void encodeBatch​(MTLCommandBuffer commandBuffer, NSArray<NSArray<MPSImage>> sourceImages, NSArray<MPSImage> destinationImages)
    • encode

      public MPSImage encode​(MTLCommandBuffer commandBuffer, NSArray<MPSImage> sourceImages)
    • encodeBatch

      public NSArray<MPSImage> encodeBatch​(MTLCommandBuffer commandBuffer, NSArray<NSArray<MPSImage>> sourceImageBatches)
    • encode

      public MPSImage encode​(MTLCommandBuffer commandBuffer, NSArray<MPSImage> sourceImages, MPSState.MPSStatePtr outState, boolean isTemporary)
    • encodeBatch

      public NSArray<MPSImage> encodeBatch​(MTLCommandBuffer commandBuffer, NSArray<NSArray<MPSImage>> sourceImageBatches, NSArray.NSArrayPtr<? extends MPSState> outState, boolean isTemporary)
    • isResultStateReusedAcrossBatch

      public boolean isResultStateReusedAcrossBatch()
    • appendBatchBarrier

      public boolean appendBatchBarrier()
    • getResultState

      public MPSState getResultState​(NSArray<MPSImage> sourceImages, NSArray<MPSState> sourceStates, MPSImage destinationImage)
    • getResultStateBatch

      public NSArray<? extends MPSState> getResultStateBatch​(NSArray<NSArray<MPSImage>> sourceImages, NSArray<NSArray<? extends MPSState>> sourceStates, NSArray<MPSImage> destinationImage)
    • getTemporaryResultState

      public MPSState getTemporaryResultState​(MTLCommandBuffer commandBuffer, NSArray<MPSImage> sourceImage, NSArray<MPSState> sourceStates, MPSImage destinationImage)
    • getTemporaryResultStateBatch

      public NSArray<? extends MPSState> getTemporaryResultStateBatch​(MTLCommandBuffer commandBuffer, NSArray<NSArray<MPSImage>> sourceImage, NSArray<NSArray<? extends MPSState>> sourceStates, NSArray<MPSImage> destinationImage)
    • getDestinationImageDescriptor

      public MPSImageDescriptor getDestinationImageDescriptor​(NSArray<MPSImage> sourceImages, NSArray<MPSState> sourceStates)