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

      • MDLVertexDescriptor

        protected MDLVertexDescriptor​(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()
      • 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​(MDLVertexAttribute attribute)
        addOrReplaceAttribute: Replace any attribute with the same name and time, or add it if it does not already exist.
      • attributeNamed

        public MDLVertexAttribute attributeNamed​(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

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

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

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

        public 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​(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​(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​(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