MDLMesh.AddAttribute Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Sobrecargas
AddAttribute(String, MDLVertexFormat, String, NSData, nint) |
Adiciona um atributo de vértice e um buffer de vértice vazio correspondente. |
AddAttribute(String, MDLVertexFormat, String, NSData, nint, Double) | |
AddAttribute(String, MDLVertexFormat) |
Adiciona o |
AddAttribute(String, MDLVertexFormat, String, NSData, nint)
Adiciona um atributo de vértice e um buffer de vértice vazio correspondente.
[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
Parâmetros
- name
- String
- format
- MDLVertexFormat
- type
- String
O tipo de vetor de malha.
- data
- NSData
- stride
- System.System.IntPtr System.nativeint
- Atributos
Aplica-se a
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
Parâmetros
- name
- String
- format
- MDLVertexFormat
- type
- String
- data
- NSData
- stride
- System.System.IntPtr System.nativeint
- time
- Double
- Atributos
Aplica-se a
AddAttribute(String, MDLVertexFormat)
Adiciona o format
atributo, indexado pela palavra-chave 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
Parâmetros
- name
- String
- format
- MDLVertexFormat
- Atributos