共用方式為


MDLMesh.AddAttribute 方法

定義

多載

AddAttribute(String, MDLVertexFormat, String, NSData, nint)

加入頂點屬性和對應的空白頂點緩衝區。

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

format加入 屬性,由 關鍵字 name 編制索引。

AddAttribute(String, MDLVertexFormat, String, NSData, nint)

加入頂點屬性和對應的空白頂點緩衝區。

[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

參數

name
String
type
String

網格向量類型。

data
NSData
stride
System.System.IntPtr System.nativeint
屬性

適用於

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

參數

name
String
type
String
data
NSData
stride
System.System.IntPtr System.nativeint
time
Double
屬性

適用於

AddAttribute(String, MDLVertexFormat)

format加入 屬性,由 關鍵字 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

參數

name
String
屬性

適用於