MDLMesh.AddAttribute 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
AddAttribute(String, MDLVertexFormat, String, NSData, nint) |
添加顶点属性和相应的空顶点缓冲区。 |
AddAttribute(String, MDLVertexFormat, String, NSData, nint, Double) | |
AddAttribute(String, MDLVertexFormat) |
|
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
- format
- MDLVertexFormat
- 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
- format
- MDLVertexFormat
- 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
- format
- MDLVertexFormat
- 属性