Package org.robovm.apple.metalps
Class MPSState
java.lang.Object
org.robovm.rt.bro.NativeObject
org.robovm.objc.ObjCObject
org.robovm.apple.foundation.NSObject
org.robovm.apple.metalps.MPSState
- All Implemented Interfaces:
NSObjectProtocol,ObjCProtocol
- Direct Known Subclasses:
MPSCNNConvolutionWeightsAndBiasesState,MPSCNNLossLabels,MPSCNNNormalizationGammaAndBetaState,MPSCNNNormalizationMeanAndVarianceState,MPSNDArrayGradientState,MPSNNBinaryGradientState,MPSNNGradientState,MPSNNMultiaryGradientState,MPSRNNMatrixTrainingState,MPSRNNRecurrentImageState,MPSRNNRecurrentMatrixState
public class MPSState extends NSObject
- Since:
- Available in iOS 11.0 and later.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMPSState.MPSStatePtrNested 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 protectedMPSState()MPSState(NSArray<?> resources)protectedMPSState(NSObject.Handle h, long handle)protectedMPSState(NSObject.SkipInit skipInit)MPSState(MTLCommandBuffer cmdBuf)MPSState(MTLCommandBuffer cmdBuf, long bufferSize)MPSState(MTLCommandBuffer cmdBuf, MTLTextureDescriptor descriptor)MPSState(MTLCommandBuffer commandBuffer, MPSStateResourceList resourceList)MPSState(MTLDevice device, long bufferSize)MPSState(MTLDevice device, MTLTextureDescriptor descriptor)MPSState(MTLDevice device, MPSStateResourceList resourceList)MPSState(MTLResource resource) -
Method Summary
Modifier and Type Method Description longbufferSizeAtIndex(long index)protected static longcreate(MTLCommandBuffer cmdBuf)protected static longcreate(MTLCommandBuffer cmdBuf, long bufferSize)protected static longcreate(MTLCommandBuffer cmdBuf, MTLTextureDescriptor descriptor)protected static longcreate(MTLCommandBuffer commandBuffer, MPSStateResourceList resourceList)MPSImageDescriptorgetDestinationImageDescriptor(NSArray<MPSImage> sourceImages, NSArray<MPSState> sourceStates, MPSKernel kernel, MPSImageDescriptor inDescriptor)StringgetLabel()longgetReadCount()MTLResourcegetResource()Deprecated.Deprecated in iOS 12.0.MTLResourcegetResource(long index, boolean allocateMemory)longgetResourceCount()protected longinit(NSArray<?> resources)protected longinit(MTLDevice device, long bufferSize)protected longinit(MTLDevice device, MTLTextureDescriptor descriptor)protected longinit(MTLDevice device, MPSStateResourceList resourceList)protected longinit(MTLResource resource)booleanisTemporary()longresourceSize()MPSStateResourceTyperesourceTypeAtIndex(long index)voidsetLabel(String v)voidsetReadCount(long v)voidsynchronizeOnCommandBuffer(MTLCommandBuffer commandBuffer)MPSStateTextureInfotextureInfoAtIndex(long index)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, 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
-
Method Details
-
getResourceCount
public long getResourceCount() -
getReadCount
public long getReadCount() -
setReadCount
public void setReadCount(long v) -
isTemporary
public boolean isTemporary() -
getLabel
-
setLabel
-
getResource
Deprecated.Deprecated in iOS 12.0. Use Please use -resourceAtIndex:allocateMemory: instead- Since:
- Available in iOS 11.0 and later.
-
init
-
init
-
init
-
init
- Since:
- Available in iOS 11.3 and later.
-
init
-
getResource
-
bufferSizeAtIndex
public long bufferSizeAtIndex(long index) -
textureInfoAtIndex
-
resourceTypeAtIndex
-
synchronizeOnCommandBuffer
- Since:
- Available in iOS 11.3 and later.
-
resourceSize
public long resourceSize()- Since:
- Available in iOS 11.3 and later.
-
getDestinationImageDescriptor
public MPSImageDescriptor getDestinationImageDescriptor(NSArray<MPSImage> sourceImages, NSArray<MPSState> sourceStates, MPSKernel kernel, MPSImageDescriptor inDescriptor) -
create
-
create
-
create
-
create
- Since:
- Available in iOS 11.3 and later.
-