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
,org.robovm.objc.ObjCProtocol
- Direct Known Subclasses:
MPSCNNConvolutionWeightsAndBiasesState
,MPSCNNLossLabels
,MPSCNNNormalizationGammaAndBetaState
,MPSCNNNormalizationMeanAndVarianceState
,MPSNNBinaryGradientState
,MPSNNGradientState
,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 class
MPSState.MPSStatePtr
-
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 protected
MPSState()
MPSState(NSArray<?> resources)
protected
MPSState(NSObject.Handle h, long handle)
protected
MPSState(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
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description long
bufferSizeAtIndex(long index)
protected static long
create(MTLCommandBuffer cmdBuf)
protected static long
create(MTLCommandBuffer cmdBuf, long bufferSize)
protected static long
create(MTLCommandBuffer cmdBuf, MTLTextureDescriptor descriptor)
protected static long
create(MTLCommandBuffer commandBuffer, MPSStateResourceList resourceList)
MPSImageDescriptor
getDestinationImageDescriptor(NSArray<MPSImage> sourceImages, NSArray<MPSState> sourceStates, MPSKernel kernel, MPSImageDescriptor inDescriptor)
java.lang.String
getLabel()
long
getReadCount()
MTLResource
getResource()
Deprecated.Deprecated in iOS 12.0.MTLResource
getResource(long index, boolean allocateMemory)
long
getResourceCount()
protected long
init(NSArray<?> resources)
protected long
init(MTLDevice device, long bufferSize)
protected long
init(MTLDevice device, MTLTextureDescriptor descriptor)
protected long
init(MTLDevice device, MPSStateResourceList resourceList)
protected long
init(MTLResource resource)
boolean
isTemporary()
long
resourceSize()
MPSStateResourceType
resourceTypeAtIndex(long index)
void
setLabel(java.lang.String v)
void
setReadCount(long v)
void
synchronizeOnCommandBuffer(MTLCommandBuffer commandBuffer)
MPSStateTextureInfo
textureInfoAtIndex(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, willChangeValues
-
-
-
-
Constructor Detail
-
MPSState
protected MPSState()
-
MPSState
protected MPSState(NSObject.Handle h, long handle)
-
MPSState
protected MPSState(NSObject.SkipInit skipInit)
-
MPSState
public MPSState(MTLDevice device, long bufferSize)
-
MPSState
public MPSState(MTLDevice device, MTLTextureDescriptor descriptor)
-
MPSState
public MPSState(MTLResource resource)
-
MPSState
public MPSState(MTLDevice device, MPSStateResourceList resourceList)
- Since:
- Available in iOS 11.3 and later.
-
MPSState
public MPSState(NSArray<?> resources)
-
MPSState
public MPSState(MTLCommandBuffer cmdBuf, long bufferSize)
-
MPSState
public MPSState(MTLCommandBuffer cmdBuf, MTLTextureDescriptor descriptor)
-
MPSState
public MPSState(MTLCommandBuffer cmdBuf)
-
MPSState
public MPSState(MTLCommandBuffer commandBuffer, MPSStateResourceList resourceList)
- Since:
- Available in iOS 11.3 and later.
-
-
Method Detail
-
getResourceCount
public long getResourceCount()
-
getReadCount
public long getReadCount()
-
setReadCount
public void setReadCount(long v)
-
isTemporary
public boolean isTemporary()
-
getLabel
public java.lang.String getLabel()
-
setLabel
public void setLabel(java.lang.String v)
-
getResource
@Deprecated public MTLResource getResource()
Deprecated.Deprecated in iOS 12.0.- Since:
- Available in iOS 11.0 and later.
-
init
protected long init(MTLDevice device, long bufferSize)
-
init
protected long init(MTLDevice device, MTLTextureDescriptor descriptor)
-
init
protected long init(MTLResource resource)
-
init
protected long init(MTLDevice device, MPSStateResourceList resourceList)
- Since:
- Available in iOS 11.3 and later.
-
init
protected long init(NSArray<?> resources)
-
getResource
public MTLResource getResource(long index, boolean allocateMemory)
-
bufferSizeAtIndex
public long bufferSizeAtIndex(long index)
-
textureInfoAtIndex
public MPSStateTextureInfo textureInfoAtIndex(long index)
-
resourceTypeAtIndex
public MPSStateResourceType resourceTypeAtIndex(long index)
-
synchronizeOnCommandBuffer
public void synchronizeOnCommandBuffer(MTLCommandBuffer commandBuffer)
- 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
protected static long create(MTLCommandBuffer cmdBuf, long bufferSize)
-
create
protected static long create(MTLCommandBuffer cmdBuf, MTLTextureDescriptor descriptor)
-
create
protected static long create(MTLCommandBuffer cmdBuf)
-
create
protected static long create(MTLCommandBuffer commandBuffer, MPSStateResourceList resourceList)
- Since:
- Available in iOS 11.3 and later.
-
-