Class MTKView

All Implemented Interfaces:
CALayerDelegate, NSCoding, NSObjectProtocol, UIAccessibilityIdentification, UIActivityItemsConfigurationProviding, UIAppearanceContainer, UICoordinateSpace, UIDynamicItem, UIFocusEnvironment, UIFocusItem, UIFocusItemContainer, UILargeContentViewerItem, UIPasteConfigurationSupporting, UIResponderStandardEditActions, UITraitEnvironment, UIUserActivityRestoring, ObjCProtocol

public class MTKView
extends UIView
implements NSCoding, CALayerDelegate
Since:
Available in iOS 9.0 and later.
  • Constructor Details

    • MTKView

      public MTKView()
    • MTKView

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

      protected MTKView​(NSObject.SkipInit skipInit)
    • MTKView

      public MTKView​(CGRect frameRect, MTLDevice device)
    • MTKView

      public MTKView​(NSCoder coder)
    • MTKView

      public MTKView​(CGRect frame)
  • Method Details

    • getDelegate

      public MTKViewDelegate getDelegate()
    • setDelegate

      public void setDelegate​(MTKViewDelegate v)
    • getDevice

      public MTLDevice getDevice()
    • setDevice

      public void setDevice​(MTLDevice v)
    • getCurrentDrawable

      public CAMetalDrawable getCurrentDrawable()
    • isFramebufferOnly

      public boolean isFramebufferOnly()
    • setFramebufferOnly

      public void setFramebufferOnly​(boolean v)
    • getDepthStencilAttachmentTextureUsage

      public MTLTextureUsage getDepthStencilAttachmentTextureUsage()
      Since:
      Available in iOS 13.0 and later.
    • setDepthStencilAttachmentTextureUsage

      public void setDepthStencilAttachmentTextureUsage​(MTLTextureUsage v)
      Since:
      Available in iOS 13.0 and later.
    • getMultisampleColorAttachmentTextureUsage

      public MTLTextureUsage getMultisampleColorAttachmentTextureUsage()
      Since:
      Available in iOS 13.0 and later.
    • setMultisampleColorAttachmentTextureUsage

      public void setMultisampleColorAttachmentTextureUsage​(MTLTextureUsage v)
      Since:
      Available in iOS 13.0 and later.
    • presentsWithTransaction

      public boolean presentsWithTransaction()
    • setPresentsWithTransaction

      public void setPresentsWithTransaction​(boolean v)
    • getColorPixelFormat

      public MTLPixelFormat getColorPixelFormat()
    • setColorPixelFormat

      public void setColorPixelFormat​(MTLPixelFormat v)
    • getDepthStencilPixelFormat

      public MTLPixelFormat getDepthStencilPixelFormat()
    • setDepthStencilPixelFormat

      public void setDepthStencilPixelFormat​(MTLPixelFormat v)
    • getSampleCount

      public long getSampleCount()
    • setSampleCount

      public void setSampleCount​(long v)
    • getClearColor

      public MTLClearColor getClearColor()
    • setClearColor

      public void setClearColor​(MTLClearColor v)
    • getClearDepth

      public double getClearDepth()
    • setClearDepth

      public void setClearDepth​(double v)
    • getClearStencil

      public int getClearStencil()
    • setClearStencil

      public void setClearStencil​(int v)
    • getDepthStencilTexture

      public MTLTexture getDepthStencilTexture()
    • getMultisampleColorTexture

      public MTLTexture getMultisampleColorTexture()
    • getCurrentRenderPassDescriptor

      public MTLRenderPassDescriptor getCurrentRenderPassDescriptor()
    • getPreferredFramesPerSecond

      public long getPreferredFramesPerSecond()
    • setPreferredFramesPerSecond

      public void setPreferredFramesPerSecond​(long v)
    • isNeedsDisplayEnabled

      public boolean isNeedsDisplayEnabled()
    • setNeedsDisplayEnabled

      public void setNeedsDisplayEnabled​(boolean v)
    • isAutoResizeDrawable

      public boolean isAutoResizeDrawable()
    • setAutoResizeDrawable

      public void setAutoResizeDrawable​(boolean v)
    • getDrawableSize

      public CGSize getDrawableSize()
    • setDrawableSize

      public void setDrawableSize​(CGSize v)
    • getPreferredDrawableSize

      public CGSize getPreferredDrawableSize()
    • getPreferredDevice

      public MTLDevice getPreferredDevice()
      Since:
      Available in iOS 13.0 and later.
    • isPaused

      public boolean isPaused()
    • setPaused

      public void setPaused​(boolean v)
    • getLayerClass

      public static Class<? extends CALayer> getLayerClass()
    • init

      protected long init​(CGRect frameRect, MTLDevice device)
    • init

      protected long init​(NSCoder coder)
      Overrides:
      init in class UIView
    • releaseDrawables

      public void releaseDrawables()
    • draw

      public void draw()
    • getUserInterfaceLayoutDirection

      public static UIUserInterfaceLayoutDirection getUserInterfaceLayoutDirection​(UISemanticContentAttribute attribute)
      Since:
      Available in iOS 9.0 and later.
    • getUserInterfaceLayoutDirection

      public static UIUserInterfaceLayoutDirection getUserInterfaceLayoutDirection​(UISemanticContentAttribute semanticContentAttribute, UIUserInterfaceLayoutDirection layoutDirection)
      Since:
      Available in iOS 10.0 and later.