Package apple.metal

Class MTLHeapDescriptor

    • Constructor Detail

      • MTLHeapDescriptor

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static MTLHeapDescriptor 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()
      • 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)
      • 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
      • cpuCacheMode

        public long cpuCacheMode()
        [@property] cpuCacheMode CPU cache mode for the heap. Default is MTLCPUCacheModeDefaultCache. All resources created from this heap share the same cache mode. CPU cache mode is ignored for MTLStorageModePrivate.
      • setCpuCacheMode

        public void setCpuCacheMode​(long value)
        [@property] cpuCacheMode CPU cache mode for the heap. Default is MTLCPUCacheModeDefaultCache. All resources created from this heap share the same cache mode. CPU cache mode is ignored for MTLStorageModePrivate.
      • setSize

        public void setSize​(long value)
        [@property] size Requested size of the heap's backing memory. The size may be rounded up to GPU page granularity.
      • setStorageMode

        public void setStorageMode​(long value)
        [@property] storageMode Storage mode for the heap. Default is MTLStorageModePrivate. All resources created from this heap share the same storage mode. MTLStorageModeManaged and MTLStorageModeMemoryless are disallowed.
      • size

        public long size()
        [@property] size Requested size of the heap's backing memory. The size may be rounded up to GPU page granularity.
      • storageMode

        public long storageMode()
        [@property] storageMode Storage mode for the heap. Default is MTLStorageModePrivate. All resources created from this heap share the same storage mode. MTLStorageModeManaged and MTLStorageModeMemoryless are disallowed.
      • hazardTrackingMode

        public long hazardTrackingMode()
        [@property] hazardTrackingMode Set hazard tracking mode for the heap. The default value is MTLHazardTrackingModeDefault. For heaps, MTLHazardTrackingModeDefault is treated as MTLHazardTrackingModeUntracked. Setting hazardTrackingMode to MTLHazardTrackingModeTracked causes hazard tracking to be enabled heap. When a resource on a hazard tracked heap is modified, reads and writes from all resources suballocated on that heap will be delayed until the modification is complete. Similarly, modifying heap resources will be delayed until all in-flight reads and writes from all resources suballocated on that heap have completed. For optimal performance, perform hazard tracking manually through MTLFence or MTLEvent instead. All resources created from this heap shared the same hazard tracking mode. API-Since: 13.0
      • resourceOptions

        public long resourceOptions()
        [@property] resourceOptions A packed tuple of the storageMode, cpuCacheMode and hazardTrackingMode properties. Modifications to this property are reflected in the other properties and vice versa. API-Since: 13.0
      • setHazardTrackingMode

        public void setHazardTrackingMode​(long value)
        [@property] hazardTrackingMode Set hazard tracking mode for the heap. The default value is MTLHazardTrackingModeDefault. For heaps, MTLHazardTrackingModeDefault is treated as MTLHazardTrackingModeUntracked. Setting hazardTrackingMode to MTLHazardTrackingModeTracked causes hazard tracking to be enabled heap. When a resource on a hazard tracked heap is modified, reads and writes from all resources suballocated on that heap will be delayed until the modification is complete. Similarly, modifying heap resources will be delayed until all in-flight reads and writes from all resources suballocated on that heap have completed. For optimal performance, perform hazard tracking manually through MTLFence or MTLEvent instead. All resources created from this heap shared the same hazard tracking mode. API-Since: 13.0
      • setResourceOptions

        public void setResourceOptions​(long value)
        [@property] resourceOptions A packed tuple of the storageMode, cpuCacheMode and hazardTrackingMode properties. Modifications to this property are reflected in the other properties and vice versa. API-Since: 13.0
      • setType

        public void setType​(long value)
        [@property] type The type of the heap. The default value is MTLHeapTypeAutomatic. This constrains the resource creation functions that are available. API-Since: 13.0
      • type

        public long type()
        [@property] type The type of the heap. The default value is MTLHeapTypeAutomatic. This constrains the resource creation functions that are available. API-Since: 13.0
      • setSparsePageSize

        public void setSparsePageSize​(long value)
        [@property] sparsePageSize The sparse page size to use for resources created from the heap. API-Since: 16.0
      • sparsePageSize

        public long sparsePageSize()
        [@property] sparsePageSize The sparse page size to use for resources created from the heap. API-Since: 16.0
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.