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
,org.robovm.objc.ObjCProtocol
public final class MTLTexture extends NSObject implements MTLResource
- Since:
- Available in iOS 8.0 and later.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MTLTexture.MTLTexturePtr
-
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 MTLTexture()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description long
getAllocatedSize()
long
getArrayLength()
MTLBuffer
getBuffer()
long
getBufferBytesPerRow()
long
getBufferOffset()
byte[]
getBytes(int length, long bytesPerRow, long bytesPerImage, MTLRegion region, long level, long slice)
byte[]
getBytes(int length, long bytesPerRow, MTLRegion region, long level)
protected void
getBytes(long pixelBytes, long bytesPerRow, long bytesPerImage, MTLRegion region, long level, long slice)
protected void
getBytes(long pixelBytes, long bytesPerRow, MTLRegion region, long level)
MTLCPUCacheMode
getCpuCacheMode()
long
getDepth()
MTLDevice
getDevice()
MTLHeap
getHeap()
long
getHeight()
IOSurface
getIosurface()
long
getIosurfacePlane()
java.lang.String
getLabel()
long
getMipmapLevelCount()
long
getParentRelativeLevel()
long
getParentRelativeSlice()
MTLTexture
getParentTexture()
MTLPixelFormat
getPixelFormat()
MTLResource
getRootResource()
Deprecated.Deprecated in iOS 10.0.long
getSampleCount()
MTLStorageMode
getStorageMode()
MTLTextureType
getTextureType()
MTLTextureUsage
getUsage()
long
getWidth()
boolean
isAliasable()
boolean
isAllowGPUOptimizedContents()
boolean
isFramebufferOnly()
void
makeAliasable()
MTLTexture
newTextureView(MTLPixelFormat pixelFormat)
MTLTexture
newTextureView(MTLPixelFormat pixelFormat, MTLTextureType textureType, NSRange levelRange, NSRange sliceRange)
void
replaceRegion(MTLRegion region, long level, byte[] pixelBytes, long bytesPerRow)
void
replaceRegion(MTLRegion region, long level, long slice, byte[] pixelBytes, long bytesPerRow, long bytesPerImage)
protected void
replaceRegion(MTLRegion region, long level, long pixelBytes, long bytesPerRow)
protected void
replaceRegion(MTLRegion region, long level, long slice, long pixelBytes, long bytesPerRow, long bytesPerImage)
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
-
getRootResource
@Deprecated public MTLResource getRootResource()
Deprecated.Deprecated in iOS 10.0. Use parentTexture or buffer instead- Since:
- Available in iOS 8.0 and later.
-
getParentTexture
public MTLTexture 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
public MTLBuffer 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
public IOSurface getIosurface()
- Since:
- Available in iOS 11.0 and later.
-
getIosurfacePlane
public long getIosurfacePlane()
- Since:
- Available in iOS 11.0 and later.
-
getTextureType
public MTLTextureType getTextureType()
-
getPixelFormat
public MTLPixelFormat 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
public MTLTextureUsage getUsage()
-
isFramebufferOnly
public boolean isFramebufferOnly()
-
isAllowGPUOptimizedContents
public boolean isAllowGPUOptimizedContents()
- Since:
- Available in iOS 12.0 and later.
-
getLabel
public java.lang.String getLabel()
- Specified by:
getLabel
in interfaceMTLResource
-
setLabel
public void setLabel(java.lang.String v)
- Specified by:
setLabel
in interfaceMTLResource
-
getDevice
public MTLDevice getDevice()
- Specified by:
getDevice
in interfaceMTLResource
-
getCpuCacheMode
public MTLCPUCacheMode getCpuCacheMode()
- Specified by:
getCpuCacheMode
in interfaceMTLResource
-
getStorageMode
public MTLStorageMode getStorageMode()
- Specified by:
getStorageMode
in interfaceMTLResource
- Since:
- Available in iOS 9.0 and later.
-
getHeap
public MTLHeap getHeap()
- Specified by:
getHeap
in interfaceMTLResource
- Since:
- Available in iOS 10.0 and later.
-
getAllocatedSize
public long getAllocatedSize()
- Specified by:
getAllocatedSize
in 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
public byte[] getBytes(int length, long bytesPerRow, MTLRegion region, long level)
-
replaceRegion
public void replaceRegion(MTLRegion region, long level, byte[] pixelBytes, long bytesPerRow)
-
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
protected void getBytes(long pixelBytes, long bytesPerRow, MTLRegion region, long level)
-
replaceRegion
protected void replaceRegion(MTLRegion region, long level, long pixelBytes, long bytesPerRow)
-
newTextureView
public MTLTexture newTextureView(MTLPixelFormat pixelFormat)
-
newTextureView
public MTLTexture newTextureView(MTLPixelFormat pixelFormat, MTLTextureType textureType, NSRange levelRange, NSRange sliceRange)
- Since:
- Available in iOS 9.0 and later.
-
setPurgeableState
public MTLPurgeableState setPurgeableState(MTLPurgeableState state)
- Specified by:
setPurgeableState
in interfaceMTLResource
-
makeAliasable
public void makeAliasable()
- Specified by:
makeAliasable
in interfaceMTLResource
- Since:
- Available in iOS 10.0 and later.
-
isAliasable
public boolean isAliasable()
- Specified by:
isAliasable
in interfaceMTLResource
- Since:
- Available in iOS 10.0 and later.
-
-