Class CAMetalLayer

    • Constructor Detail

      • CAMetalLayer

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

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

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

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

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

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

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

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

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

        @Nullable
        public static @Nullable java.lang.Object defaultValueForKey​(@NotNull
                                                                    @NotNull 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

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

        public static boolean needsDisplayForKey​(@NotNull
                                                 @NotNull java.lang.String key)
      • 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

        @Nullable
        public @Nullable 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​(@NotNull
                                          @NotNull 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

        @Nullable
        public @Nullable 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​(@Nullable
                              @Nullable 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. API-Since: 11.0
      • 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. API-Since: 11.0
      • 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

        @Nullable
        public @Nullable 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​(@NotNull
                                                        @NotNull 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. API-Since: 11.2
      • preferredDevice

        @Nullable
        public @Nullable MTLDevice preferredDevice()
        This property returns the preferred MTLDevice for this CAMetalLayer. API-Since: 13.0
      • setColorspace

        public void setColorspace​(@Nullable
                                  @Nullable 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. API-Since: 11.2
      • EDRMetadata

        @Nullable
        public @Nullable CAEDRMetadata EDRMetadata()
        Metadata describing extended dynamic range content in the layer's drawable. Must be set before calling nextDrawable. If non-nil, content may be tone mapped to match the current display characteristics. If nil, samples will be rendered without tone mapping and values above the maximum EDR value -[NSScreen maximumExtendedDynamicRangeColorComponentValue] may be clamped. Defaults to nil. API-Since: 16.0
      • developerHUDProperties

        @Nullable
        public @Nullable NSDictionary<?,​?> developerHUDProperties()
        When non-nil, controls the options of developer HUD. Defaults to nil. API-Since: 16.0
      • setDeveloperHUDProperties

        public void setDeveloperHUDProperties​(@Nullable
                                              @Nullable NSDictionary<?,​?> value)
        When non-nil, controls the options of developer HUD. Defaults to nil. API-Since: 16.0
      • setEDRMetadata

        public void setEDRMetadata​(@Nullable
                                   @Nullable CAEDRMetadata value)
        Metadata describing extended dynamic range content in the layer's drawable. Must be set before calling nextDrawable. If non-nil, content may be tone mapped to match the current display characteristics. If nil, samples will be rendered without tone mapping and values above the maximum EDR value -[NSScreen maximumExtendedDynamicRangeColorComponentValue] may be clamped. Defaults to nil. API-Since: 16.0
      • setWantsExtendedDynamicRangeContent

        public void setWantsExtendedDynamicRangeContent​(boolean value)
        If any rendering context on the screen has this enabled, all content will be clamped to its NSScreen’s maximumExtendedDynamicRangeColorComponentValue rather than 1.0. The default is NO. API-Since: 16.0
        Overrides:
        setWantsExtendedDynamicRangeContent in class CALayer
      • wantsExtendedDynamicRangeContent

        public boolean wantsExtendedDynamicRangeContent()
        If any rendering context on the screen has this enabled, all content will be clamped to its NSScreen’s maximumExtendedDynamicRangeColorComponentValue rather than 1.0. The default is NO. API-Since: 16.0
        Overrides:
        wantsExtendedDynamicRangeContent in class CALayer
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.