MDLMesh.AddAttribute Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AddAttribute(String, MDLVertexFormat, String, NSData, nint) |
Adds a vertex attribute and a corresponding empty vertex buffer. |
AddAttribute(String, MDLVertexFormat, String, NSData, nint, Double) | |
AddAttribute(String, MDLVertexFormat) |
Adds the |
AddAttribute(String, MDLVertexFormat, String, NSData, nint)
Adds a vertex attribute and a corresponding empty vertex buffer.
[Foundation.Export("addAttributeWithName:format:type:data:stride:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 12, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void AddAttribute (string name, ModelIO.MDLVertexFormat format, string type, Foundation.NSData data, nint stride);
abstract member AddAttribute : string * ModelIO.MDLVertexFormat * string * Foundation.NSData * nint -> unit
override this.AddAttribute : string * ModelIO.MDLVertexFormat * string * Foundation.NSData * nint -> unit
Parameters
- name
- String
- format
- MDLVertexFormat
- type
- String
The mesh vector type.
- data
- NSData
- stride
- System.System.IntPtr System.nativeint
- Attributes
Applies to
AddAttribute(String, MDLVertexFormat, String, NSData, nint, Double)
[Foundation.Export("addAttributeWithName:format:type:data:stride:time:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 12, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void AddAttribute (string name, ModelIO.MDLVertexFormat format, string type, Foundation.NSData data, nint stride, double time);
abstract member AddAttribute : string * ModelIO.MDLVertexFormat * string * Foundation.NSData * nint * double -> unit
override this.AddAttribute : string * ModelIO.MDLVertexFormat * string * Foundation.NSData * nint * double -> unit
Parameters
- name
- String
- format
- MDLVertexFormat
- type
- String
- data
- NSData
- stride
- System.System.IntPtr System.nativeint
- time
- Double
- Attributes
Applies to
AddAttribute(String, MDLVertexFormat)
Adds the format
attribute, indexed by the keyword name
.
[Foundation.Export("addAttributeWithName:format:")]
public virtual void AddAttribute (string name, ModelIO.MDLVertexFormat format);
abstract member AddAttribute : string * ModelIO.MDLVertexFormat -> unit
override this.AddAttribute : string * ModelIO.MDLVertexFormat -> unit
Parameters
- name
- String
- format
- MDLVertexFormat
- Attributes