Class CAMetalLayer

    • Constructor Detail

      • CAMetalLayer

        protected CAMetalLayer​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static java.lang.Object allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(java.lang.Object aTarget,
                                                                                 org.moe.natj.objc.SEL aSelector,
                                                                                 java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        public static org.moe.natj.objc.Class classForKeyedUnarchiver()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • defaultActionForKey

        public static CAAction defaultActionForKey​(java.lang.String event)
      • defaultValueForKey

        public static java.lang.Object defaultValueForKey​(java.lang.String key)
      • description_static

        public static java.lang.String description_static()
      • hash_static

        public static long hash_static()
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(java.lang.String key)
      • needsDisplayForKey

        public static boolean needsDisplayForKey​(java.lang.String key)
      • new_objc

        public static java.lang.Object new_objc()
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • version_static

        public static long version_static()
      • device

        public MTLDevice device()
        This property determines which MTLDevice the MTLTexture objects for the drawables will be created from. On iOS this defaults to MTLCreateSystemDefaultDevice(). On macOS this defaults to nil and must be set explicitly before asking for the first drawable.
      • drawableSize

        public CGSize drawableSize()
        This property controls the pixel dimensions of the returned drawable objects. The most typical value will be the layer size multiplied by the layer contentsScale property.
      • framebufferOnly

        public boolean framebufferOnly()
        This property controls whether or not the returned drawables' MTLTextures may only be used for framebuffer attachments (YES) or whether they may also be used for texture sampling and pixel read/write operations (NO). A value of YES allows CAMetalLayer to allocate the MTLTexture objects in ways that are optimized for display purposes that makes them unsuitable for sampling. The recommended value for most applications is YES.
      • initWithLayer

        public CAMetalLayer initWithLayer​(java.lang.Object layer)
        Description copied from class: CALayer
        This initializer is used by CoreAnimation to create shadow copies of layers, e.g. for use as presentation layers. Subclasses can override this method to copy their instance variables into the presentation layer (subclasses should call the superclass afterwards). Calling this method in any other situation will result in undefined behavior.
        Overrides:
        initWithLayer in class CALayer
      • nextDrawable

        public CAMetalDrawable nextDrawable()
        Get the swap queue's next available drawable. Always blocks until a drawable is available. Can return nil under the following conditions: 1) The layer has an invalid combination of drawable properties. 2) All drawables in the swap queue are in-use and the 1 second timeout has elapsed. (except when `allowsNextDrawableTimeout' is set to NO) 3) Process is out of memory.
      • pixelFormat

        public long pixelFormat()
        This property controls the pixel format of the MTLTexture objects. The two supported values are MTLPixelFormatBGRA8Unorm and MTLPixelFormatBGRA8Unorm_sRGB.
      • presentsWithTransaction

        public boolean presentsWithTransaction()
        When false (the default value) changes to the layer's render buffer appear on-screen asynchronously to normal layer updates. When true, changes to the MTL content are sent to the screen via the standard CATransaction mechanisms.
      • setDevice

        public void setDevice​(MTLDevice value)
        This property determines which MTLDevice the MTLTexture objects for the drawables will be created from. On iOS this defaults to MTLCreateSystemDefaultDevice(). On macOS this defaults to nil and must be set explicitly before asking for the first drawable.
      • setDrawableSize

        public void setDrawableSize​(CGSize value)
        This property controls the pixel dimensions of the returned drawable objects. The most typical value will be the layer size multiplied by the layer contentsScale property.
      • setFramebufferOnly

        public void setFramebufferOnly​(boolean value)
        This property controls whether or not the returned drawables' MTLTextures may only be used for framebuffer attachments (YES) or whether they may also be used for texture sampling and pixel read/write operations (NO). A value of YES allows CAMetalLayer to allocate the MTLTexture objects in ways that are optimized for display purposes that makes them unsuitable for sampling. The recommended value for most applications is YES.
      • setPixelFormat

        public void setPixelFormat​(long value)
        This property controls the pixel format of the MTLTexture objects. The two supported values are MTLPixelFormatBGRA8Unorm and MTLPixelFormatBGRA8Unorm_sRGB.
      • setPresentsWithTransaction

        public void setPresentsWithTransaction​(boolean value)
        When false (the default value) changes to the layer's render buffer appear on-screen asynchronously to normal layer updates. When true, changes to the MTL content are sent to the screen via the standard CATransaction mechanisms.
      • allowsNextDrawableTimeout

        public boolean allowsNextDrawableTimeout()
        Controls if `-nextDrawable' is allowed to timeout after 1 second and return nil if * the system does not have a free drawable available. The default value is YES. If set to NO, then `-nextDrawable' will block forever until a free drawable is available.
      • setAllowsNextDrawableTimeout

        public void setAllowsNextDrawableTimeout​(boolean value)
        Controls if `-nextDrawable' is allowed to timeout after 1 second and return nil if * the system does not have a free drawable available. The default value is YES. If set to NO, then `-nextDrawable' will block forever until a free drawable is available.
      • supportsSecureCoding

        public static boolean supportsSecureCoding()
      • _supportsSecureCoding

        public boolean _supportsSecureCoding()
        Description copied from interface: NSSecureCoding
        This property must return YES on all classes that allow secure coding. Subclasses of classes that adopt NSSecureCoding and override initWithCoder: must also override this method and return YES. The Secure Coding Guide should be consulted when writing methods that decode data.
        Specified by:
        _supportsSecureCoding in interface NSSecureCoding
        Overrides:
        _supportsSecureCoding in class CALayer
      • colorspace

        public CGColorSpaceRef colorspace()
        The colorspace of the rendered frames. If nil, no colormatching occurs. If non-nil, the rendered content will be colormatched to the colorspace of the context containing this layer (typically the display's colorspace).
      • cornerCurveExpansionFactor

        public static double cornerCurveExpansionFactor​(java.lang.String curve)
      • maximumDrawableCount

        public long maximumDrawableCount()
        Controls the number maximum number of drawables in the swap queue. The default value is 3. Values set outside of range [2, 3] are ignored and an exception will be thrown.
      • preferredDevice

        public MTLDevice preferredDevice()
        This property returns the preferred MTLDevice for this CAMetalLayer.
      • setColorspace

        public void setColorspace​(CGColorSpaceRef value)
        The colorspace of the rendered frames. If nil, no colormatching occurs. If non-nil, the rendered content will be colormatched to the colorspace of the context containing this layer (typically the display's colorspace).
      • setMaximumDrawableCount

        public void setMaximumDrawableCount​(long value)
        Controls the number maximum number of drawables in the swap queue. The default value is 3. Values set outside of range [2, 3] are ignored and an exception will be thrown.