public static /*<name>*/MDLVertexAttributeName/*</name>*/ valueOf(/*<type>*/NSString/*</type>*/ value) { for (/*<name>*/MDLVertexAttributeName/*</name>*/ v : values) { if (v.value().equals(value)) { return v; } } throw new IllegalArgumentException("No constant with value " + value + " found in " + /*<name>*/MDLVertexAttributeName/*</name>*/.class.getName()); }
@MarshalsPointer public static long toNative(MDLVertexAttributeName o, long flags) { if (o == null) { return 0L; } return NSObject.Marshaler.toNative(o.value(), flags); } }
@Property(selector = "setName:") public native void setName(String v); @Property(selector = "format")
@Method(selector = "attributeNamed:") public native MDLVertexAttribute getAttribute(String name); @Method(selector = "addOrReplaceAttribute:")
@MarshalsPointer public static long toNative(List<MDLVertexAttributeName> l, long flags) { if (l == null) { return 0L; } NSArray<NSString> array = new NSMutableArray<>(); for (MDLVertexAttributeName o : l) { array.add(o.value()); } return NSObject.Marshaler.toNative(array, flags); } }
public MDLVertexAttribute(MDLVertexAttributeName name, MDLVertexFormat format, @MachineSizedUInt long offset, @MachineSizedUInt long bufferIndex) { super((SkipInit) null); initObject(init(name.value(), format, offset, bufferIndex)); }
public static /*<name>*/MDLVertexAttributeName/*</name>*/ valueOf(/*<type>*/NSString/*</type>*/ value) { for (/*<name>*/MDLVertexAttributeName/*</name>*/ v : values) { if (v.value().equals(value)) { return v; } } throw new IllegalArgumentException("No constant with value " + value + " found in " + /*<name>*/MDLVertexAttributeName/*</name>*/.class.getName()); }
public static /*<name>*/MDLVertexAttributeName/*</name>*/ valueOf(/*<type>*/NSString/*</type>*/ value) { for (/*<name>*/MDLVertexAttributeName/*</name>*/ v : values) { if (v.value().equals(value)) { return v; } } throw new IllegalArgumentException("No constant with value " + value + " found in " + /*<name>*/MDLVertexAttributeName/*</name>*/.class.getName()); }
@MarshalsPointer public static long toNative(MDLVertexAttributeName o, long flags) { if (o == null) { return 0L; } return NSObject.Marshaler.toNative(o.value(), flags); } }
@MarshalsPointer public static long toNative(MDLVertexAttributeName o, long flags) { if (o == null) { return 0L; } return NSObject.Marshaler.toNative(o.value(), flags); } }
@Property(selector = "setName:") public native void setName(String v); @Property(selector = "format")
@Method(selector = "attributeNamed:") public native MDLVertexAttribute getAttribute(String name); @Method(selector = "addOrReplaceAttribute:")
@Property(selector = "setName:") public native void setName(String v); @Property(selector = "format")
@Method(selector = "attributeNamed:") public native MDLVertexAttribute getAttribute(String name); @Method(selector = "addOrReplaceAttribute:")
@MarshalsPointer public static long toNative(List<MDLVertexAttributeName> l, long flags) { if (l == null) { return 0L; } NSArray<NSString> array = new NSMutableArray<>(); for (MDLVertexAttributeName o : l) { array.add(o.value()); } return NSObject.Marshaler.toNative(array, flags); } }
@MarshalsPointer public static long toNative(List<MDLVertexAttributeName> l, long flags) { if (l == null) { return 0L; } NSArray<NSString> array = new NSMutableArray<>(); for (MDLVertexAttributeName o : l) { array.add(o.value()); } return NSObject.Marshaler.toNative(array, flags); } }
public MDLVertexAttribute(MDLVertexAttributeName name, MDLVertexFormat format, @MachineSizedUInt long offset, @MachineSizedUInt long bufferIndex) { super((SkipInit) null); initObject(init(name.value(), format, offset, bufferIndex)); }
public MDLVertexAttribute(MDLVertexAttributeName name, MDLVertexFormat format, @MachineSizedUInt long offset, @MachineSizedUInt long bufferIndex) { super((SkipInit) null); initObject(init(name.value(), format, offset, bufferIndex)); }