Package org.robovm.apple.metal
Class MTLTexture
java.lang.Object
org.robovm.rt.bro.NativeObject
org.robovm.objc.ObjCObject
org.robovm.apple.foundation.NSObject
org.robovm.apple.metal.MTLTexture
- All Implemented Interfaces:
NSObjectProtocol,MTLResource,ObjCProtocol
public final class MTLTexture extends NSObject implements MTLResource
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMTLTexture.MTLTexturePtrNested 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 Constructor Description MTLTexture() -
Method Summary
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
-
MTLTexture
public MTLTexture()
-
-
Method Details
-
getRootResource
Deprecated.Deprecated in iOS 10.0. Use parentTexture or buffer instead -
getParentTexture
- Since:
- Available in iOS 9.0 and later.
-
getParentRelativeLevel
public long getParentRelativeLevel()- Since:
- Available in iOS 9.0 and later.
-
getParentRelativeSlice
public long getParentRelativeSlice()- Since:
- Available in iOS 9.0 and later.
-
getBuffer
- Since:
- Available in iOS 9.0 and later.
-
getBufferOffset
public long getBufferOffset()- Since:
- Available in iOS 9.0 and later.
-
getBufferBytesPerRow
public long getBufferBytesPerRow()- Since:
- Available in iOS 9.0 and later.
-
getIosurface
- Since:
- Available in iOS 11.0 and later.
-
getIosurfacePlane
public long getIosurfacePlane()- Since:
- Available in iOS 11.0 and later.
-
getTextureType
-
getPixelFormat
-
getWidth
public long getWidth() -
getHeight
public long getHeight() -
getDepth
public long getDepth() -
getMipmapLevelCount
public long getMipmapLevelCount() -
getSampleCount
public long getSampleCount() -
getArrayLength
public long getArrayLength() -
getUsage
-
isShareable
public boolean isShareable()- Since:
- Available in iOS 13.0 and later.
-
isFramebufferOnly
public boolean isFramebufferOnly() -
getFirstMipmapInTail
public long getFirstMipmapInTail()- Since:
- Available in iOS 13.0 and later.
-
getTailSizeInBytes
public long getTailSizeInBytes()- Since:
- Available in iOS 13.0 and later.
-
isSparse
public boolean isSparse()- Since:
- Available in iOS 13.0 and later.
-
isAllowGPUOptimizedContents
public boolean isAllowGPUOptimizedContents()- Since:
- Available in iOS 12.0 and later.
-
getCompressionType
- Since:
- Available in iOS 15.0 and later.
-
getSwizzle
- Since:
- Available in iOS 13.0 and later.
-
getLabel
- Specified by:
getLabelin interfaceMTLResource
-
setLabel
- Specified by:
setLabelin interfaceMTLResource
-
getDevice
- Specified by:
getDevicein interfaceMTLResource
-
getCpuCacheMode
- Specified by:
getCpuCacheModein interfaceMTLResource
-
getStorageMode
- Specified by:
getStorageModein interfaceMTLResource- Since:
- Available in iOS 9.0 and later.
-
getHazardTrackingMode
- Specified by:
getHazardTrackingModein interfaceMTLResource- Since:
- Available in iOS 13.0 and later.
-
getResourceOptions
- Specified by:
getResourceOptionsin interfaceMTLResource- Since:
- Available in iOS 13.0 and later.
-
getHeap
- Specified by:
getHeapin interfaceMTLResource- Since:
- Available in iOS 10.0 and later.
-
getHeapOffset
public long getHeapOffset()- Specified by:
getHeapOffsetin interfaceMTLResource- Since:
- Available in iOS 13.0 and later.
-
getAllocatedSize
public long getAllocatedSize()- Specified by:
getAllocatedSizein interfaceMTLResource- Since:
- Available in iOS 11.0 and later.
-
getBytes
public byte[] getBytes(int length, long bytesPerRow, long bytesPerImage, MTLRegion region, long level, long slice) -
replaceRegion
public void replaceRegion(MTLRegion region, long level, long slice, byte[] pixelBytes, long bytesPerRow, long bytesPerImage) -
getBytes
-
replaceRegion
-
getBytes
protected void getBytes(long pixelBytes, long bytesPerRow, long bytesPerImage, MTLRegion region, long level, long slice) -
replaceRegion
protected void replaceRegion(MTLRegion region, long level, long slice, long pixelBytes, long bytesPerRow, long bytesPerImage) -
getBytes
-
replaceRegion
-
newTextureView
-
newTextureView
public MTLTexture newTextureView(MTLPixelFormat pixelFormat, MTLTextureType textureType, NSRange levelRange, NSRange sliceRange)- Since:
- Available in iOS 9.0 and later.
-
newSharedTextureHandle
- Since:
- Available in iOS 13.0 and later.
-
newTextureView
public MTLTexture newTextureView(MTLPixelFormat pixelFormat, MTLTextureType textureType, NSRange levelRange, NSRange sliceRange, MTLTextureSwizzleChannels swizzle)- Since:
- Available in iOS 13.0 and later.
-
setPurgeableState
- Specified by:
setPurgeableStatein interfaceMTLResource
-
makeAliasable
public void makeAliasable()- Specified by:
makeAliasablein interfaceMTLResource- Since:
- Available in iOS 10.0 and later.
-
isAliasable
public boolean isAliasable()- Specified by:
isAliasablein interfaceMTLResource- Since:
- Available in iOS 10.0 and later.
-