Package org.robovm.apple.metal
Class MTLHeapAdapter
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.objc.ObjCObject
-
- org.robovm.apple.foundation.NSObject
-
- org.robovm.apple.metal.MTLHeapAdapter
-
- All Implemented Interfaces:
NSObjectProtocol
,MTLHeap
,org.robovm.objc.ObjCProtocol
public class MTLHeapAdapter extends NSObject implements MTLHeap
-
-
Nested Class Summary
-
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 Constructor Description MTLHeapAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MTLCPUCacheMode
getCpuCacheMode()
long
getCurrentAllocatedSize()
MTLDevice
getDevice()
java.lang.String
getLabel()
long
getMaxAvailableSize(long alignment)
long
getSize()
MTLStorageMode
getStorageMode()
long
getUsedSize()
MTLBuffer
newBuffer(long length, MTLResourceOptions options)
MTLTexture
newTexture(MTLTextureDescriptor desc)
void
setLabel(java.lang.String v)
MTLPurgeableState
setPurgeableState(MTLPurgeableState state)
-
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
-
-
-
-
Method Detail
-
getStorageMode
public MTLStorageMode getStorageMode()
- Specified by:
getStorageMode
in interfaceMTLHeap
-
getCpuCacheMode
public MTLCPUCacheMode getCpuCacheMode()
- Specified by:
getCpuCacheMode
in interfaceMTLHeap
-
getUsedSize
public long getUsedSize()
- Specified by:
getUsedSize
in interfaceMTLHeap
-
getCurrentAllocatedSize
public long getCurrentAllocatedSize()
- Specified by:
getCurrentAllocatedSize
in interfaceMTLHeap
- Since:
- Available in iOS 11.0 and later.
-
getMaxAvailableSize
public long getMaxAvailableSize(long alignment)
- Specified by:
getMaxAvailableSize
in interfaceMTLHeap
-
newBuffer
public MTLBuffer newBuffer(long length, MTLResourceOptions options)
-
newTexture
public MTLTexture newTexture(MTLTextureDescriptor desc)
- Specified by:
newTexture
in interfaceMTLHeap
-
setPurgeableState
public MTLPurgeableState setPurgeableState(MTLPurgeableState state)
- Specified by:
setPurgeableState
in interfaceMTLHeap
-
-