Package org.robovm.apple.metalps
Class MPSCNNArithmetic
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
org.robovm.apple.metalps.MPSCNNArithmetic
- All Implemented Interfaces:
NSCoding,NSObjectProtocol,NSSecureCoding,ObjCProtocol
- Direct Known Subclasses:
MPSCNNAdd,MPSCNNDivide,MPSCNNMultiply,MPSCNNSubtract,MPSNNCompare
public class MPSCNNArithmetic extends MPSCNNBinaryKernel
- Since:
- Available in iOS 11.3 and later.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMPSCNNArithmetic.MPSCNNArithmeticPtrNested classes/interfaces inherited from class org.robovm.apple.metalps.MPSCNNBinaryKernel
MPSCNNBinaryKernel.MPSCNNBinaryKernelPtrNested classes/interfaces inherited from class org.robovm.apple.metalps.MPSKernel
MPSKernel.MPSKernelPtrNested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInitNested classes/interfaces inherited from class org.robovm.objc.ObjCObject
ObjCObject.ObjCObjectPtr, ObjCObject.Super -
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description MPSCNNArithmetic()MPSCNNArithmetic(NSCoder coder)MPSCNNArithmetic(NSCoder decoder, MTLDevice device)protectedMPSCNNArithmetic(NSObject.Handle h, long handle)protectedMPSCNNArithmetic(NSObject.SkipInit skipInit) -
Method Summary
Modifier and Type Method Description voidencode(MTLCommandBuffer commandBuffer, MPSImage primaryImage, MPSImage secondaryImage, MPSCNNArithmeticGradientState destinationState, MPSImage destinationImage)voidencodeBatch(MTLCommandBuffer commandBuffer, NSArray<MPSImage> primaryImages, NSArray<MPSImage> secondaryImages, NSArray<MPSCNNArithmeticGradientState> destinationStates, NSArray<MPSImage> destinationImages)floatgetBias()floatgetMaximumValue()floatgetMinimumValue()floatgetPrimaryScale()longgetPrimaryStrideInFeatureChannels()floatgetSecondaryScale()longgetSecondaryStrideInFeatureChannels()voidsetBias(float v)voidsetMaximumValue(float v)voidsetMinimumValue(float v)voidsetPrimaryScale(float v)voidsetPrimaryStrideInFeatureChannels(long v)voidsetSecondaryScale(float v)voidsetSecondaryStrideInFeatureChannels(long v)static booleansupportsSecureCoding()Methods inherited from class org.robovm.apple.metalps.MPSCNNBinaryKernel
appendBatchBarrier, batchEncodingStorageSize, encode, encode, encode, encodeBatch, encodeBatch, encodeBatch, encodingStorageSize, getClipRect, getDestinationFeatureChannelOffset, getDestinationImageAllocator, getDestinationImageDescriptor, getPadding, getPrimaryDilationRateX, getPrimaryDilationRateY, getPrimaryEdgeMode, getPrimaryKernelHeight, getPrimaryKernelWidth, getPrimaryOffset, getPrimarySourceFeatureChannelMaxCount, getPrimarySourceFeatureChannelOffset, getPrimaryStrideInPixelsX, getPrimaryStrideInPixelsY, getResultState, getResultStateBatch, getSecondaryDilationRateX, getSecondaryDilationRateY, getSecondaryEdgeMode, getSecondaryKernelHeight, getSecondaryKernelWidth, getSecondaryOffset, getSecondarySourceFeatureChannelMaxCount, getSecondarySourceFeatureChannelOffset, getSecondaryStrideInPixelsX, getSecondaryStrideInPixelsY, getTemporaryResultState, getTemporaryResultStateBatch, init, init, isBackwards, isResultStateReusedAcrossBatch, isStateModified, setClipRect, setDestinationFeatureChannelOffset, setDestinationImageAllocator, setPadding, setPrimaryEdgeMode, setPrimaryOffset, setPrimarySourceFeatureChannelMaxCount, setPrimarySourceFeatureChannelOffset, setPrimaryStrideInPixelsX, setPrimaryStrideInPixelsY, setSecondaryEdgeMode, setSecondaryOffset, setSecondarySourceFeatureChannelMaxCount, setSecondarySourceFeatureChannelOffset, setSecondaryStrideInPixelsX, setSecondaryStrideInPixelsYMethods inherited from class org.robovm.apple.metalps.MPSKernel
copy, encode, getDevice, getLabel, getOptions, init, setLabel, setOptionsMethods 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, willChangeValuesMethods inherited from class org.robovm.objc.ObjCObject
addStrongRef, dispose, dispose, finalize, getAssociatedObject, getObjCClass, getPeerObject, getSuper, initObject, logRetainRelease, removeStrongRef, retainCustomObjectFromCb, setAssociatedObject, toObjCObject, toObjCObject, updateStrongRef
-
Constructor Details
-
MPSCNNArithmetic
public MPSCNNArithmetic() -
MPSCNNArithmetic
-
MPSCNNArithmetic
-
MPSCNNArithmetic
-
MPSCNNArithmetic
-
-
Method Details
-
getPrimaryScale
public float getPrimaryScale() -
setPrimaryScale
public void setPrimaryScale(float v) -
getSecondaryScale
public float getSecondaryScale() -
setSecondaryScale
public void setSecondaryScale(float v) -
getBias
public float getBias() -
setBias
public void setBias(float v) -
getPrimaryStrideInFeatureChannels
public long getPrimaryStrideInFeatureChannels() -
setPrimaryStrideInFeatureChannels
public void setPrimaryStrideInFeatureChannels(long v) -
getSecondaryStrideInFeatureChannels
public long getSecondaryStrideInFeatureChannels() -
setSecondaryStrideInFeatureChannels
public void setSecondaryStrideInFeatureChannels(long v) -
getMinimumValue
public float getMinimumValue() -
setMinimumValue
public void setMinimumValue(float v) -
getMaximumValue
public float getMaximumValue() -
setMaximumValue
public void setMaximumValue(float v) -
supportsSecureCoding
public static boolean supportsSecureCoding() -
encode
public void encode(MTLCommandBuffer commandBuffer, MPSImage primaryImage, MPSImage secondaryImage, MPSCNNArithmeticGradientState destinationState, MPSImage destinationImage) -
encodeBatch
public void encodeBatch(MTLCommandBuffer commandBuffer, NSArray<MPSImage> primaryImages, NSArray<MPSImage> secondaryImages, NSArray<MPSCNNArithmeticGradientState> destinationStates, NSArray<MPSImage> destinationImages)
-