Package org.robovm.apple.metalps
Class MPSCNNBinaryKernel
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.objc.ObjCObject
-
- org.robovm.apple.foundation.NSObject
-
- org.robovm.apple.metalps.MPSKernel
-
- org.robovm.apple.metalps.MPSCNNBinaryKernel
-
- All Implemented Interfaces:
NSCoding
,NSObjectProtocol
,NSSecureCoding
,org.robovm.objc.ObjCProtocol
- Direct Known Subclasses:
MPSCNNArithmetic
,MPSCNNGradientKernel
,MPSNNReduceBinary
public class MPSCNNBinaryKernel extends MPSKernel
- Since:
- Available in iOS 11.0 and later.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MPSCNNBinaryKernel.MPSCNNBinaryKernelPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.metalps.MPSKernel
MPSKernel.MPSKernelPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInit
-
-
Field Summary
-
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAIN
-
-
Constructor Summary
Constructors Modifier Constructor Description MPSCNNBinaryKernel()
MPSCNNBinaryKernel(NSCoder decoder)
MPSCNNBinaryKernel(NSCoder decoder, MTLDevice device)
protected
MPSCNNBinaryKernel(NSObject.Handle h, long handle)
protected
MPSCNNBinaryKernel(NSObject.SkipInit skipInit)
MPSCNNBinaryKernel(MTLDevice device)
-
Method Summary
-
Methods inherited from class org.robovm.apple.metalps.MPSKernel
copy, encode, getDevice, getLabel, getOptions, init, setLabel, setOptions, supportsSecureCoding
-
Methods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValues
-
-
-
-
Constructor Detail
-
MPSCNNBinaryKernel
public MPSCNNBinaryKernel()
-
MPSCNNBinaryKernel
protected MPSCNNBinaryKernel(NSObject.Handle h, long handle)
-
MPSCNNBinaryKernel
protected MPSCNNBinaryKernel(NSObject.SkipInit skipInit)
-
MPSCNNBinaryKernel
public MPSCNNBinaryKernel(MTLDevice device)
-
MPSCNNBinaryKernel
public MPSCNNBinaryKernel(NSCoder decoder)
-
-
Method Detail
-
getPrimaryOffset
public MPSOffset getPrimaryOffset()
-
setPrimaryOffset
public void setPrimaryOffset(MPSOffset v)
-
getSecondaryOffset
public MPSOffset getSecondaryOffset()
-
setSecondaryOffset
public void setSecondaryOffset(MPSOffset v)
-
getClipRect
public MTLRegion getClipRect()
-
setClipRect
public void setClipRect(MTLRegion v)
-
getDestinationFeatureChannelOffset
public long getDestinationFeatureChannelOffset()
-
setDestinationFeatureChannelOffset
public void setDestinationFeatureChannelOffset(long v)
-
getPrimarySourceFeatureChannelOffset
public long getPrimarySourceFeatureChannelOffset()
- Since:
- Available in iOS 11.3 and later.
-
setPrimarySourceFeatureChannelOffset
public void setPrimarySourceFeatureChannelOffset(long v)
- Since:
- Available in iOS 11.3 and later.
-
getSecondarySourceFeatureChannelOffset
public long getSecondarySourceFeatureChannelOffset()
- Since:
- Available in iOS 11.3 and later.
-
setSecondarySourceFeatureChannelOffset
public void setSecondarySourceFeatureChannelOffset(long v)
- Since:
- Available in iOS 11.3 and later.
-
getPrimarySourceFeatureChannelMaxCount
public long getPrimarySourceFeatureChannelMaxCount()
-
setPrimarySourceFeatureChannelMaxCount
public void setPrimarySourceFeatureChannelMaxCount(long v)
-
getSecondarySourceFeatureChannelMaxCount
public long getSecondarySourceFeatureChannelMaxCount()
-
setSecondarySourceFeatureChannelMaxCount
public void setSecondarySourceFeatureChannelMaxCount(long v)
-
getPrimaryEdgeMode
public MPSImageEdgeMode getPrimaryEdgeMode()
-
setPrimaryEdgeMode
public void setPrimaryEdgeMode(MPSImageEdgeMode v)
-
getSecondaryEdgeMode
public MPSImageEdgeMode getSecondaryEdgeMode()
-
setSecondaryEdgeMode
public void setSecondaryEdgeMode(MPSImageEdgeMode v)
-
getPrimaryKernelWidth
public long getPrimaryKernelWidth()
- Since:
- Available in iOS 11.3 and later.
-
getPrimaryKernelHeight
public long getPrimaryKernelHeight()
- Since:
- Available in iOS 11.3 and later.
-
getSecondaryKernelWidth
public long getSecondaryKernelWidth()
- Since:
- Available in iOS 11.3 and later.
-
getSecondaryKernelHeight
public long getSecondaryKernelHeight()
- Since:
- Available in iOS 11.3 and later.
-
getPrimaryStrideInPixelsX
public long getPrimaryStrideInPixelsX()
- Since:
- Available in iOS 11.3 and later.
-
setPrimaryStrideInPixelsX
public void setPrimaryStrideInPixelsX(long v)
- Since:
- Available in iOS 11.3 and later.
-
getPrimaryStrideInPixelsY
public long getPrimaryStrideInPixelsY()
- Since:
- Available in iOS 11.3 and later.
-
setPrimaryStrideInPixelsY
public void setPrimaryStrideInPixelsY(long v)
- Since:
- Available in iOS 11.3 and later.
-
getSecondaryStrideInPixelsX
public long getSecondaryStrideInPixelsX()
- Since:
- Available in iOS 11.3 and later.
-
setSecondaryStrideInPixelsX
public void setSecondaryStrideInPixelsX(long v)
- Since:
- Available in iOS 11.3 and later.
-
getSecondaryStrideInPixelsY
public long getSecondaryStrideInPixelsY()
- Since:
- Available in iOS 11.3 and later.
-
setSecondaryStrideInPixelsY
public void setSecondaryStrideInPixelsY(long v)
- Since:
- Available in iOS 11.3 and later.
-
getPrimaryDilationRateX
public long getPrimaryDilationRateX()
- Since:
- Available in iOS 11.3 and later.
-
getPrimaryDilationRateY
public long getPrimaryDilationRateY()
- Since:
- Available in iOS 11.3 and later.
-
getSecondaryDilationRateX
public long getSecondaryDilationRateX()
- Since:
- Available in iOS 11.3 and later.
-
getSecondaryDilationRateY
public long getSecondaryDilationRateY()
- Since:
- Available in iOS 11.3 and later.
-
isBackwards
public boolean isBackwards()
-
isStateModified
public boolean isStateModified()
- Since:
- Available in iOS 11.3 and later.
-
getPadding
public MPSNNPadding getPadding()
-
setPadding
public void setPadding(MPSNNPadding v)
-
getDestinationImageAllocator
public MPSImageAllocator getDestinationImageAllocator()
-
setDestinationImageAllocator
public void setDestinationImageAllocator(MPSImageAllocator v)
-
encode
public void encode(MTLCommandBuffer commandBuffer, MPSImage primaryImage, MPSImage secondaryImage, MPSImage destinationImage)
-
encodeBatch
public void encodeBatch(MTLCommandBuffer commandBuffer, NSArray<MPSImage> primaryImages, NSArray<MPSImage> secondaryImages, NSArray<MPSImage> destinationImages)
- Since:
- Available in iOS 11.3 and later.
-
encode
public MPSImage encode(MTLCommandBuffer commandBuffer, MPSImage primaryImage, MPSImage secondaryImage)
-
encodeBatch
public NSArray<MPSImage> encodeBatch(MTLCommandBuffer commandBuffer, NSArray<MPSImage> primaryImage, NSArray<MPSImage> secondaryImage)
- Since:
- Available in iOS 11.3 and later.
-
encode
public MPSImage encode(MTLCommandBuffer commandBuffer, MPSImage primaryImage, MPSImage secondaryImage, MPSState.MPSStatePtr outState, boolean isTemporary)
- Since:
- Available in iOS 11.3 and later.
-
encodeBatch
public NSArray<MPSImage> encodeBatch(MTLCommandBuffer commandBuffer, NSArray<MPSImage> primaryImages, NSArray<MPSImage> secondaryImages, NSArray.NSArrayPtr<? extends MPSState> outState, boolean isTemporary)
- Since:
- Available in iOS 11.3 and later.
-
getResultState
public MPSState getResultState(MPSImage primaryImage, MPSImage secondaryImage, NSArray<MPSState> sourceStates, MPSImage destinationImage)
- Since:
- Available in iOS 11.3 and later.
-
getResultStateBatch
public NSArray<? extends MPSState> getResultStateBatch(NSArray<MPSImage> primaryImage, NSArray<MPSImage> secondaryImage, NSArray<NSArray<? extends MPSState>> sourceStates, NSArray<MPSImage> destinationImage)
- Since:
- Available in iOS 11.3 and later.
-
getTemporaryResultState
public MPSState getTemporaryResultState(MTLCommandBuffer commandBuffer, MPSImage primaryImage, MPSImage secondaryImage, NSArray<MPSState> sourceStates, MPSImage destinationImage)
- Since:
- Available in iOS 11.3 and later.
-
getTemporaryResultStateBatch
public NSArray<? extends MPSState> getTemporaryResultStateBatch(MTLCommandBuffer commandBuffer, NSArray<MPSImage> primaryImage, NSArray<MPSImage> secondaryImage, NSArray<NSArray<? extends MPSState>> sourceStates, NSArray<MPSImage> destinationImage)
- Since:
- Available in iOS 11.3 and later.
-
isResultStateReusedAcrossBatch
public boolean isResultStateReusedAcrossBatch()
- Since:
- Available in iOS 11.3 and later.
-
appendBatchBarrier
public boolean appendBatchBarrier()
- Since:
- Available in iOS 11.3 and later.
-
getDestinationImageDescriptor
public MPSImageDescriptor getDestinationImageDescriptor(NSArray<MPSImage> sourceImages, NSArray<MPSState> sourceStates)
-
-