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

      • MTLRenderPassDescriptor

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

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

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

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

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

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

        public long getSamplePositionsCount​(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.
      • imageblockSampleLength

        public long imageblockSampleLength()
        [@property] imageblockSampleLength: The per sample size in bytes of the largest explicit imageblock layout in the renderPass.
      • 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.
      • 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.
      • setDefaultRasterSampleCount

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

        public void setImageblockSampleLength​(long value)
        [@property] imageblockSampleLength: The per sample size in bytes of the largest explicit imageblock layout in the renderPass.
      • 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.
      • 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.
      • setSamplePositionsCount

        public void setSamplePositionsCount​(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).
      • setThreadgroupMemoryLength

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

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

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

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

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

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

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

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

        public void setRasterizationRateMap​(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.
      • setRenderTargetArrayLength

        public void setRenderTargetArrayLength​(long value)
        [@property] renderTargetArrayLength: The number of active layers