Class MTKSubmesh

  • All Implemented Interfaces:
    NSObject

    public class MTKSubmesh
    extends NSObject
    MTKSubmesh A segment of a mesh and properties to render the segement. Container for data that can be rendered in a single draw call. 1:1 mapping to MDLSubmesh. Each submesh contains an index Buffer with which the parents mesh data can be rendered. Actual vertex data resides in the submesh's parent MTKMesh object.
    • Constructor Detail

      • MTKSubmesh

        protected MTKSubmesh​(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()
      • indexBuffer

        public MTKMeshBuffer indexBuffer()
        [@property] indexBuffer IndexBuffer (including indexCount) to render the object. The MTLBuffer to use for indexBuffer parameter in a [MTLRenderCommandEncoder drawIndexedPrimitives] call.
      • indexCount

        public long indexCount()
        [@property] indexCount Number of indicies in indexBuffer. Value to use for indexCount parameter in a [MTLRenderCommandEncoder drawIndexedPrimitives] call.
      • indexType

        public long indexType()
        [@property] indexType Metal index type of data in indexBuffer. Value to use for indexType parameter in a [MTLRenderCommandEncoder drawIndexedPrimitives] call.
      • mesh

        public MTKMesh mesh()
        [@property] mesh Parent MTKMesh object containing vertex data of this object. The buffer of this parent mesh should be set in the encoder before a drawIndexedPrimitives call is made.
      • name

        public java.lang.String name()
        [@property] name Name from the original MDLSubmesh object. Although not directly used by this object, the application may use this to identify the submesh in the renderer/scene/world.
      • primitiveType

        public long primitiveType()
        [@property] primitiveType Metal primitive type with which to draw this object. Value to use for primitiveType parameter in a [MTLRenderCommandEncoder drawIndexedPrimitives] call.
      • setName

        public void setName​(java.lang.String value)
        [@property] name Name from the original MDLSubmesh object. Although not directly used by this object, the application may use this to identify the submesh in the renderer/scene/world.