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.
    • Constructor Detail

      • MTLRasterizationRateLayerDescriptor

        protected MTLRasterizationRateLayerDescriptor​(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()
      • copyWithZone

        public java.lang.Object copyWithZone​(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

        public 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

        public 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,
                                                                                         org.moe.natj.general.ptr.ConstFloatPtr horizontal,
                                                                                         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

        public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(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)
      • sampleCount

        public MTLSize sampleCount()
        [@property] sampleCount
        Returns:
        The number of quality samples that this descriptor contains, for the horizontal and vertical axis. The depth component of the returned MTLSize is always 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

        public 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

        public 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.