Package apple.metal

Class MTLRasterizationRateLayerDescriptor

  • All Implemented Interfaces:
    NSCopying, NSObject

    public class MTLRasterizationRateLayerDescriptor
    extends NSObject
    implements NSCopying
    [@interface] MTLRasterizationRateLayerDescriptor Describes the minimum rasterization rate screen space using two piecewise linear functions. The two piecewise linear function (PLF) describe the desired rasterization quality on the horizontal and vertical axis separately. Each quality sample in the PLF is stored in an array as single precision floating point value between 0 (lowest quality) and 1 (highest quality). The first sample in the array describes the quality at the top (vertical) or left (horizontal) edge of screen space. The last sample in the array describes the quality at the bottom (vertical) or right (horizontal) edge of screen space. All other samples are spaced equidistant in screen space. MTLRasterizationRateLayerDescriptor instances will be stored inside a MTLRasterizationRateMapDescriptor which in turn is compiled by MTLDevice into a MTLRasterizationRateMap. Because MTLDevice may not support the requested granularity, the provided samples may be rounded up (towards higher quality) during compilation. API-Since: 13.0
    • Constructor Detail

      • MTLRasterizationRateLayerDescriptor

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • 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()
      • copyWithZone

        @NotNull
        public @NotNull java.lang.Object copyWithZone​(@Nullable
                                                      @Nullable org.moe.natj.general.ptr.VoidPtr zone)
        Specified by:
        copyWithZone in interface NSCopying
      • debugDescription_static

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

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

        public static long hash_static()
      • horizontal

        @NotNull
        public @NotNull MTLRasterizationRateSampleArray horizontal()
        [@property] horizontal Provide convenient bounds-checked access to the quality samples stored in the descriptor.
        Returns:
        Returns a syntactic sugar helper to get or set sample values on the horizontal axis.
      • horizontalSampleStorage

        @NotNull
        public @NotNull org.moe.natj.general.ptr.FloatPtr horizontalSampleStorage()
        [@property] horizontalSampleStorage Provide direct access to the quality samples stored in the descriptor. The returned pointer points to the first element of an array of sampleCount.width elements.
        Returns:
        Pointer to the (mutable) storage array for samples on the horizontal axis.
      • initWithSampleCount

        public MTLRasterizationRateLayerDescriptor initWithSampleCount​(MTLSize sampleCount)
        initWithSampleCount: Initialize a descriptor for a layer with the given number of quality samples on the horizontal and vertical axis. All values are initialized to zero.
        Parameters:
        sampleCount - The width and height components are the number of samples on the horizontal and vertical axis respectively. The depth component is ignored.
      • initWithSampleCountHorizontalVertical

        public MTLRasterizationRateLayerDescriptor initWithSampleCountHorizontalVertical​(MTLSize sampleCount,
                                                                                         @NotNull
                                                                                         @NotNull org.moe.natj.general.ptr.ConstFloatPtr horizontal,
                                                                                         @NotNull
                                                                                         @NotNull org.moe.natj.general.ptr.ConstFloatPtr vertical)
        initWithSampleCount:horizontal:vertical: Initialize a descriptor for a layer with the given number of quality samples on the horizontal and vertical axis. Use initWithSampleCount: to initialize with zeroes instead.
        Parameters:
        sampleCount - The width and height components are the number of samples on the horizontal and vertical axis respectively. The depth component is ignored.
        horizontal - The initial sample values on the horizontal axis. Must point to an array of sampleCount.width elements, of which the values will be copied into the MTLRasterizationRateLayerDescriptor.
        vertical - The initial sample values on the vertical axis. Must point to an array of sampleCount.height elements, of which the values will be copied into the MTLRasterizationRateLayerDescriptor.
      • 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)
      • resolveClassMethod

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

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

        public MTLSize sampleCount()
        [@property] sampleCount
        Returns:
        The number of quality samples that this descriptor uses to describe its current function, for the horizontal and vertical axis. The depth component of the returned MTLSize is always 0. API-Since: 13.0
      • 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()
      • vertical

        @NotNull
        public @NotNull MTLRasterizationRateSampleArray vertical()
        [@property] vertical Provide convenient bounds-checked access to the quality samples stored in the descriptor.
        Returns:
        Returns a syntactic sugar helper to get or set sample values on the vertical axis.
      • verticalSampleStorage

        @NotNull
        public @NotNull org.moe.natj.general.ptr.FloatPtr verticalSampleStorage()
        [@property] verticalSampleStorage Provide direct access to the quality samples stored in the descriptor. The returned pointer points to the first element of an array of sampleCount.height elements.
        Returns:
        Pointer to the (mutable) storage array for samples on the vertical axis.
      • maxSampleCount

        public MTLSize maxSampleCount()
        [@property] maxSampleCount
        Returns:
        The maximum number of quality samples that this descriptor can use to describe its function, for the horizontal and vertical axis, this is the sampleCount that the descriptor was initialized with. The depth component of the returned MTLSize is always 0. API-Since: 15.0
      • setSampleCount

        public void setSampleCount​(MTLSize value)
        [@property] sampleCount This declaration adds a setter to the previously (prior to macOS 12.0 and iOS 15.0) read-only property. Setting a value (must be <= maxSampleCount) to allow MTLRasterizationRateLayerDescriptor to be re-used with a different number of samples without having to be recreated. API-Since: 15.0
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.