Package org.robovm.apple.metal
Class MTLTextureDescriptor
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.objc.ObjCObject
-
- org.robovm.apple.foundation.NSObject
-
- org.robovm.apple.metal.MTLTextureDescriptor
-
- All Implemented Interfaces:
NSObjectProtocol
,org.robovm.objc.ObjCProtocol
public class MTLTextureDescriptor extends NSObject
- Since:
- Available in iOS 8.0 and later.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MTLTextureDescriptor.MTLTextureDescriptorPtr
-
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 MTLTextureDescriptor()
protected
MTLTextureDescriptor(NSObject.Handle h, long handle)
protected
MTLTextureDescriptor(NSObject.SkipInit skipInit)
-
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, willChangeValues
-
-
-
-
Constructor Detail
-
MTLTextureDescriptor
public MTLTextureDescriptor()
-
MTLTextureDescriptor
protected MTLTextureDescriptor(NSObject.Handle h, long handle)
-
MTLTextureDescriptor
protected MTLTextureDescriptor(NSObject.SkipInit skipInit)
-
-
Method Detail
-
getTextureType
public MTLTextureType getTextureType()
-
setTextureType
public void setTextureType(MTLTextureType v)
-
getPixelFormat
public MTLPixelFormat getPixelFormat()
-
setPixelFormat
public void setPixelFormat(MTLPixelFormat v)
-
getWidth
public long getWidth()
-
setWidth
public void setWidth(long v)
-
getHeight
public long getHeight()
-
setHeight
public void setHeight(long v)
-
getDepth
public long getDepth()
-
setDepth
public void setDepth(long v)
-
getMipmapLevelCount
public long getMipmapLevelCount()
-
setMipmapLevelCount
public void setMipmapLevelCount(long v)
-
getSampleCount
public long getSampleCount()
-
setSampleCount
public void setSampleCount(long v)
-
getArrayLength
public long getArrayLength()
-
setArrayLength
public void setArrayLength(long v)
-
getResourceOptions
public MTLResourceOptions getResourceOptions()
-
setResourceOptions
public void setResourceOptions(MTLResourceOptions v)
-
getCpuCacheMode
public MTLCPUCacheMode getCpuCacheMode()
- Since:
- Available in iOS 9.0 and later.
-
setCpuCacheMode
public void setCpuCacheMode(MTLCPUCacheMode v)
- Since:
- Available in iOS 9.0 and later.
-
getStorageMode
public MTLStorageMode getStorageMode()
- Since:
- Available in iOS 9.0 and later.
-
setStorageMode
public void setStorageMode(MTLStorageMode v)
- Since:
- Available in iOS 9.0 and later.
-
getUsage
public MTLTextureUsage getUsage()
- Since:
- Available in iOS 9.0 and later.
-
setUsage
public void setUsage(MTLTextureUsage v)
- Since:
- Available in iOS 9.0 and later.
-
isAllowGPUOptimizedContents
public boolean isAllowGPUOptimizedContents()
- Since:
- Available in iOS 12.0 and later.
-
setAllowGPUOptimizedContents
public void setAllowGPUOptimizedContents(boolean v)
- Since:
- Available in iOS 12.0 and later.
-
create2DDescriptor
public static MTLTextureDescriptor create2DDescriptor(MTLPixelFormat pixelFormat, long width, long height, boolean mipmapped)
-
createCubeDescriptor
public static MTLTextureDescriptor createCubeDescriptor(MTLPixelFormat pixelFormat, long size, boolean mipmapped)
-
createBufferDescriptor
public static MTLTextureDescriptor createBufferDescriptor(MTLPixelFormat pixelFormat, long width, MTLResourceOptions resourceOptions, MTLTextureUsage usage)
- Since:
- Available in iOS 12.0 and later.
-
-