次の方法で共有


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
属性

適用対象