Class MTLTextureDescriptor

All Implemented Interfaces:
NSObjectProtocol, ObjCProtocol

public class MTLTextureDescriptor
extends NSObject
  • Constructor Details

    • MTLTextureDescriptor

      public MTLTextureDescriptor()
    • MTLTextureDescriptor

      protected MTLTextureDescriptor​(NSObject.Handle h, long handle)
    • MTLTextureDescriptor

      protected MTLTextureDescriptor​(NSObject.SkipInit skipInit)
  • Method Details

    • 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.
    • getHazardTrackingMode

      public MTLHazardTrackingMode getHazardTrackingMode()
      Since:
      Available in iOS 13.0 and later.
    • setHazardTrackingMode

      public void setHazardTrackingMode​(MTLHazardTrackingMode v)
      Since:
      Available in iOS 13.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.
    • getCompressionType

      public MTLTextureCompressionType getCompressionType()
      Since:
      Available in iOS 15.0 and later.
    • setCompressionType

      public void setCompressionType​(MTLTextureCompressionType v)
      Since:
      Available in iOS 15.0 and later.
    • getSwizzle

      public MTLTextureSwizzleChannels getSwizzle()
      Since:
      Available in iOS 13.0 and later.
    • setSwizzle

      public void setSwizzle​(MTLTextureSwizzleChannels v)
      Since:
      Available in iOS 13.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.