Lingua

MeshSpecification.Attribute Costruttori

Definizione

Overload

Nome Descrizione
MeshSpecification.Attribute(IntPtr, JniHandleOwnership)

Crea un'istanza gestita che rappresenta un oggetto Java esistente.

MeshSpecification.Attribute(MeshSpecificationType, Int32, String)

Crea metadati di attributo con un tipo, un offset di byte e un nome dello shader.

MeshSpecification.Attribute(IntPtr, JniHandleOwnership)

Crea un'istanza gestita che rappresenta un oggetto Java esistente.

protected Attribute(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Graphics.MeshSpecification.Attribute : nativeint * Android.Runtime.JniHandleOwnership -> Android.Graphics.MeshSpecification.Attribute

Parametri

javaReference
IntPtr

nativeint

Riferimento JNI all'oggetto Java.

transfer
JniHandleOwnership

Specifica se la proprietà del riferimento JNI viene trasferita a questa istanza.

Commenti

Il runtime chiama questo costruttore per creare una rappresentazione gestita di un oggetto Java esistente.

Si applica a

MeshSpecification.Attribute(MeshSpecificationType, Int32, String)

Crea metadati di attributo con un tipo, un offset di byte e un nome dello shader.

[Android.Runtime.Register(".ctor", "(IILjava/lang/String;)V", "", ApiSince=34)]
public Attribute(Android.Graphics.MeshSpecificationType type, int offset, string name);
[<Android.Runtime.Register(".ctor", "(IILjava/lang/String;)V", "", ApiSince=34)>]
new Android.Graphics.MeshSpecification.Attribute : Android.Graphics.MeshSpecificationType * int * string -> Android.Graphics.MeshSpecification.Attribute

Parametri

type
MeshSpecificationType

Il valore è uno dei seguenti: Float; Float2; Float3; Float4; Ubyte4

offset
Int32

Offset dei byte dell'attributo all'interno di un record vertice.

name
String

Nome dell'attributo esposto al vertex shader.

Attributi

Commenti

Informazioni di riferimento su Android per android.graphics.MeshSpecification.Attribute.Attribute.

Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dalla e usati in base ai termini descritti in Creative License 2.5 Attribution License.

Si applica a