Package apple.metal

Class MTLRenderPassDescriptor

  • All Implemented Interfaces:
    NSCopying, NSObject

    public class MTLRenderPassDescriptor
    extends NSObject
    implements NSCopying
    MTLRenderPassDescriptor MTLRenderPassDescriptor represents a collection of attachments to be used to create a concrete render command encoder API-Since: 8.0
    • Constructor Detail

      • MTLRenderPassDescriptor

        protected MTLRenderPassDescriptor​(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()
      • 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()
      • 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)
      • renderPassDescriptor

        @NotNull
        public static @NotNull MTLRenderPassDescriptor renderPassDescriptor()
        renderPassDescriptor Create an autoreleased default frame buffer descriptor
      • 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()
      • copyWithZone

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

        public void setVisibilityResultBuffer​(@Nullable
                                              @Nullable MTLBuffer value)
        [@property] visibilityResultBuffer: Buffer into which samples passing the depth and stencil tests are counted.
      • visibilityResultBuffer

        @Nullable
        public @Nullable MTLBuffer visibilityResultBuffer()
        [@property] visibilityResultBuffer: Buffer into which samples passing the depth and stencil tests are counted.
      • defaultRasterSampleCount

        public long defaultRasterSampleCount()
        [@property] defaultRasterSampleCount: The raster sample count for the render pass when no attachments are given. API-Since: 11.0
      • getSamplePositionsCount

        public long getSamplePositionsCount​(@Nullable
                                            @Nullable MTLSamplePosition positions,
                                            long count)
        getSamplePositions:count: Retrieve the previously configured custom sample positions. The positions input array will only be modified when count specifies a length sufficient for the number of previously configured positions.
        Parameters:
        positions - The destination array for custom sample position data.
        count - Specifies the length of the positions array, which must be large enough to hold all configured sample positions.
        Returns:
        The number of previously configured custom sample positions. API-Since: 11.0
      • imageblockSampleLength

        public long imageblockSampleLength()
        [@property] imageblockSampleLength: The per sample size in bytes of the largest explicit imageblock layout in the renderPass. API-Since: 11.0
      • renderTargetHeight

        public long renderTargetHeight()
        [@property] renderTargetHeight: The height in pixels to constrain the render target to. Defaults to 0. If non-zero the value must be smaller than or equal to the minimum height of all attachments. API-Since: 11.0
      • renderTargetWidth

        public long renderTargetWidth()
        [@property] renderTargetWidth: The width in pixels to constrain the render target to. Defaults to 0. If non-zero the value must be smaller than or equal to the minimum width of all attachments. API-Since: 11.0
      • setDefaultRasterSampleCount

        public void setDefaultRasterSampleCount​(long value)
        [@property] defaultRasterSampleCount: The raster sample count for the render pass when no attachments are given. API-Since: 11.0
      • setImageblockSampleLength

        public void setImageblockSampleLength​(long value)
        [@property] imageblockSampleLength: The per sample size in bytes of the largest explicit imageblock layout in the renderPass. API-Since: 11.0
      • setRenderTargetHeight

        public void setRenderTargetHeight​(long value)
        [@property] renderTargetHeight: The height in pixels to constrain the render target to. Defaults to 0. If non-zero the value must be smaller than or equal to the minimum height of all attachments. API-Since: 11.0
      • setRenderTargetWidth

        public void setRenderTargetWidth​(long value)
        [@property] renderTargetWidth: The width in pixels to constrain the render target to. Defaults to 0. If non-zero the value must be smaller than or equal to the minimum width of all attachments. API-Since: 11.0
      • setSamplePositionsCount

        public void setSamplePositionsCount​(@Nullable
                                            @Nullable MTLSamplePosition positions,
                                            long count)
        setSamplePositions:count: Configure the custom sample positions, to be used in MSAA rendering (i.e. when sample count > 1).
        Parameters:
        positions - The source array for custom sample position data.
        count - Specifies the length of the positions array, and must be a valid sample count or 0 (to disable custom sample positions). API-Since: 11.0
      • setThreadgroupMemoryLength

        public void setThreadgroupMemoryLength​(long value)
        [@property] threadgroupMemoryLength: The per tile size in bytes of the persistent threadgroup memory allocation. API-Since: 11.0
      • setTileHeight

        public void setTileHeight​(long value)
        [@property] tileHeight: The height in pixels of the tile. Defaults to 0. Zero means Metal chooses a height that fits within the local memory. API-Since: 11.0
      • setTileWidth

        public void setTileWidth​(long value)
        [@property] tileWidth: The width in pixels of the tile. Defaults to 0. Zero means Metal chooses a width that fits within the local memory. API-Since: 11.0
      • threadgroupMemoryLength

        public long threadgroupMemoryLength()
        [@property] threadgroupMemoryLength: The per tile size in bytes of the persistent threadgroup memory allocation. API-Since: 11.0
      • tileHeight

        public long tileHeight()
        [@property] tileHeight: The height in pixels of the tile. Defaults to 0. Zero means Metal chooses a height that fits within the local memory. API-Since: 11.0
      • tileWidth

        public long tileWidth()
        [@property] tileWidth: The width in pixels of the tile. Defaults to 0. Zero means Metal chooses a width that fits within the local memory. API-Since: 11.0
      • rasterizationRateMap

        @Nullable
        public @Nullable MTLRasterizationRateMap rasterizationRateMap()
        [@property] rasterizationRateMap The variable rasterization rate map to use when rendering this pass, or nil to not use variable rasterization rate. The default value is nil. Enabling variable rasterization rate allows for decreasing the rasterization rate in unimportant regions of screen space. API-Since: 13.0
      • renderTargetArrayLength

        public long renderTargetArrayLength()
        [@property] renderTargetArrayLength: The number of active layers API-Since: 12.0
      • setRasterizationRateMap

        public void setRasterizationRateMap​(@Nullable
                                            @Nullable MTLRasterizationRateMap value)
        [@property] rasterizationRateMap The variable rasterization rate map to use when rendering this pass, or nil to not use variable rasterization rate. The default value is nil. Enabling variable rasterization rate allows for decreasing the rasterization rate in unimportant regions of screen space. API-Since: 13.0
      • setRenderTargetArrayLength

        public void setRenderTargetArrayLength​(long value)
        [@property] renderTargetArrayLength: The number of active layers API-Since: 12.0
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.