Share via


MDLMesh.AddAttribute Method

Definition

Overloads

Name Description
AddAttribute(String, MDLVertexFormat, String, NSData, IntPtr)

Adds a vertex attribute and a corresponding empty vertex buffer.

AddAttribute(String, MDLVertexFormat, String, NSData, IntPtr, Double)
AddAttribute(String, MDLVertexFormat)

Adds the format attribute, indexed by the keyword name.

AddAttribute(String, MDLVertexFormat, String, NSData, IntPtr)

Adds a vertex attribute and a corresponding empty vertex buffer.

[Foundation.Export("addAttributeWithName:format:type:data:stride:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual void AddAttribute(string name, ModelIO.MDLVertexFormat format, string type, Foundation.NSData data, IntPtr stride);
[<Foundation.Export("addAttributeWithName:format:type:data:stride:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member AddAttribute : string * ModelIO.MDLVertexFormat * string * Foundation.NSData * nativeint -> unit
override this.AddAttribute : string * ModelIO.MDLVertexFormat * string * Foundation.NSData * nativeint -> unit

Parameters

name
String
type
String

The mesh vector type.

data
NSData
stride
IntPtr

nativeint

Attributes

Applies to

AddAttribute(String, MDLVertexFormat, String, NSData, IntPtr, Double)

[Foundation.Export("addAttributeWithName:format:type:data:stride:time:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual void AddAttribute(string name, ModelIO.MDLVertexFormat format, string type, Foundation.NSData data, IntPtr stride, double time);
[<Foundation.Export("addAttributeWithName:format:type:data:stride:time:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member AddAttribute : string * ModelIO.MDLVertexFormat * string * Foundation.NSData * nativeint * double -> unit
override this.AddAttribute : string * ModelIO.MDLVertexFormat * string * Foundation.NSData * nativeint * double -> unit

Parameters

name
String
type
String
data
NSData
stride
IntPtr

nativeint

time
Double
Attributes

Applies to

AddAttribute(String, MDLVertexFormat)

Adds the format attribute, indexed by the keyword name.

[Foundation.Export("addAttributeWithName:format:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual void AddAttribute(string name, ModelIO.MDLVertexFormat format);
[<Foundation.Export("addAttributeWithName:format:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member AddAttribute : string * ModelIO.MDLVertexFormat -> unit
override this.AddAttribute : string * ModelIO.MDLVertexFormat -> unit

Parameters

name
String
Attributes

Applies to