MDLMesh.AddAttribute Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Surcharges
AddAttribute(String, MDLVertexFormat, String, NSData, nint) |
Ajoute un attribut de vertex et une mémoire tampon de vertex vide correspondante. |
AddAttribute(String, MDLVertexFormat, String, NSData, nint, Double) | |
AddAttribute(String, MDLVertexFormat) |
Ajoute l’attribut |
AddAttribute(String, MDLVertexFormat, String, NSData, nint)
Ajoute un attribut de vertex et une mémoire tampon de vertex vide correspondante.
[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
Paramètres
- name
- String
- format
- MDLVertexFormat
- type
- String
Type de vecteur de maillage.
- data
- NSData
- stride
- System.System.IntPtr System.nativeint
- Attributs
S’applique à
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
Paramètres
- name
- String
- format
- MDLVertexFormat
- type
- String
- data
- NSData
- stride
- System.System.IntPtr System.nativeint
- time
- Double
- Attributs
S’applique à
AddAttribute(String, MDLVertexFormat)
Ajoute l’attribut format
, indexé par le mot clé 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
Paramètres
- name
- String
- format
- MDLVertexFormat
- Attributs