Package apple.modelio

Class MDLVertexDescriptor

  • All Implemented Interfaces:
    NSCopying, NSObject

    public class MDLVertexDescriptor
    extends NSObject
    implements NSCopying
    MDLVertexDescriptor Describes the layout of vertex buffers in MDLMesh objects This object is a property of MDLMesh describing the current state of attributes and buffer layouts of the vertex buffers in the mesh. This must be immutable otherwise even small changes could cause the buffers to be out of sync with the layout described here. Designed to be very similar to MTLVertexDescriptor to ease creation of one from the other API-Since: 9.0
    • Constructor Detail

      • MDLVertexDescriptor

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static MDLVertexDescriptor 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()
      • addOrReplaceAttribute

        public void addOrReplaceAttribute​(@NotNull
                                          @NotNull MDLVertexAttribute attribute)
        addOrReplaceAttribute: Replace any attribute with the same name and time, or add it if it does not already exist.
      • attributeNamed

        @Nullable
        public @Nullable MDLVertexAttribute attributeNamed​(@NotNull
                                                           @NotNull java.lang.String name)
        attributeNamed: Retrieves the attribute with the given name
        Returns:
        The attribute with the supplied name or nil if attribute with the given name does not exist in the descriptor object
      • attributes

        @NotNull
        public @NotNull NSMutableArray<MDLVertexAttribute> attributes()
        [@property] attributes An array of MDLVertexAttribute objects ay describing the current attribute state of vertex buffers in an MDLMesh mesh
      • copyWithZone

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

        public MDLVertexDescriptor initWithVertexDescriptor​(@NotNull
                                                            @NotNull MDLVertexDescriptor vertexDescriptor)
        initVertexDescriptor: Initializes the object with values from supplied vertexDescriptor This performs a deep copy of all data in the supplied descriptor.
      • layouts

        @NotNull
        public @NotNull NSMutableArray<MDLVertexBufferLayout> layouts()
        [@property] layouts An array of MDLVertexBufferLayout An array describing the current layout state of vertex buffers in an MDLMesh mesh
      • removeAttributeNamed

        public void removeAttributeNamed​(@NotNull
                                         @NotNull java.lang.String name)
        removeAttributeNamed: Remove the named attribute if it exists
      • reset

        public void reset()
        reset Tesets the descriptor to initial values
      • setAttributes

        public void setAttributes​(@NotNull
                                  @NotNull NSMutableArray<MDLVertexAttribute> value)
        [@property] attributes An array of MDLVertexAttribute objects ay describing the current attribute state of vertex buffers in an MDLMesh mesh
      • setLayouts

        public void setLayouts​(@NotNull
                               @NotNull NSMutableArray<MDLVertexBufferLayout> value)
        [@property] layouts An array of MDLVertexBufferLayout An array describing the current layout state of vertex buffers in an MDLMesh mesh
      • setPackedOffsets

        public void setPackedOffsets()
        setPackedOffsets Sets the stride in each VertexAttribute in the attributes array to the minimum value to pack each attribute next to each other in its vertexbuffer
      • setPackedStrides

        public void setPackedStrides()
        setPackedStrides Sets the stride in each VertexBufferLout in the layouts array to the minimum value encompassing all attributes in the vertex buffer
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.