語言

MeshSpecification.Make 方法

定義

多載

Make(MeshSpecification+Attribute[], Int32, MeshSpecification+Varying[], String, String)

建立一個用於 Mesh 內的 MeshSpecification 物件。

[Android.Runtime.Register("make", "([Landroid/graphics/MeshSpecification$Attribute;I[Landroid/graphics/MeshSpecification$Varying;Ljava/lang/String;Ljava/lang/String;)Landroid/graphics/MeshSpecification;", "", ApiSince=34)]
public static Android.Graphics.MeshSpecification Make(Android.Graphics.MeshSpecification.Attribute[] attributes, int vertexStride, Android.Graphics.MeshSpecification.Varying[] varyings, string vertexShader, string fragmentShader);
[<Android.Runtime.Register("make", "([Landroid/graphics/MeshSpecification$Attribute;I[Landroid/graphics/MeshSpecification$Varying;Ljava/lang/String;Ljava/lang/String;)Landroid/graphics/MeshSpecification;", "", ApiSince=34)>]
static member Make : Android.Graphics.MeshSpecification.Attribute[] * int * Android.Graphics.MeshSpecification.Varying[] * string * string -> Android.Graphics.MeshSpecification

參數

attributes
MeshSpecification.Attribute[]

屬性所代表的屬性列表。 最多能裝8個。 這個值不可能為零值。

vertexStride
Int32

頂點步幅長度以位元組為單位。 這應該是單一頂點屬性的大小。 最高可達1024分。 價值介於1到1024(含)之間

varyings
MeshSpecification.Varying[]

由 Varying 代表的變異列表。 最多能裝6個。 請注意,預設 position 提供,無需在列表中提供,且不計入允許的6個變數。 這個值不可能為零值。

vertexShader
String

頂點著色器將被提供給網格。 確保在著色器中調整位置,才能獲得正確效果。 請參閱 MeshSpecification 以了解頂點著色器實作的範例。 這個值不可能為零值。

fragmentShader
String

將提供給網格的碎片著色器。 請參閱 MeshSpecification 以了解片段著色器實作的範例。 這個值不可能為零值。

傳回

用於建立網格時使用的 MeshSpecification 物件 這個值不能為 null。

屬性

備註

Android 參考資料。android.graphics.MeshSpecification.make

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

Make(MeshSpecification+Attribute[], Int32, MeshSpecification+Varying[], String, String, ColorSpace)

建立一個 MeshSpecification 物件。

[Android.Runtime.Register("make", "([Landroid/graphics/MeshSpecification$Attribute;I[Landroid/graphics/MeshSpecification$Varying;Ljava/lang/String;Ljava/lang/String;Landroid/graphics/ColorSpace;)Landroid/graphics/MeshSpecification;", "", ApiSince=34)]
public static Android.Graphics.MeshSpecification Make(Android.Graphics.MeshSpecification.Attribute[] attributes, int vertexStride, Android.Graphics.MeshSpecification.Varying[] varyings, string vertexShader, string fragmentShader, Android.Graphics.ColorSpace colorSpace);
[<Android.Runtime.Register("make", "([Landroid/graphics/MeshSpecification$Attribute;I[Landroid/graphics/MeshSpecification$Varying;Ljava/lang/String;Ljava/lang/String;Landroid/graphics/ColorSpace;)Landroid/graphics/MeshSpecification;", "", ApiSince=34)>]
static member Make : Android.Graphics.MeshSpecification.Attribute[] * int * Android.Graphics.MeshSpecification.Varying[] * string * string * Android.Graphics.ColorSpace -> Android.Graphics.MeshSpecification

參數

attributes
MeshSpecification.Attribute[]

屬性所代表的屬性列表。 最多能裝8個。 這個值不可能為零值。

vertexStride
Int32

頂點步幅長度以位元組為單位。 這應該是單一頂點屬性的大小。 最高可達1024分。 價值介於1到1024(含)之間

varyings
MeshSpecification.Varying[]

由 Varying 代表的變異列表。 最多能裝6個。 請注意,預設 position 提供,無需在列表中提供,且不計入允許的6個變數。 這個值不可能為零值。

vertexShader
String

頂點著色器將被提供給網格。 確保在著色器中調整位置,才能獲得正確效果。 請參閱 MeshSpecification 以了解頂點著色器實作的範例。 這個值不可能為零值。

fragmentShader
String

將提供給網格的碎片著色器。 請參閱 MeshSpecification 以了解片段著色器實作的範例。 這個值不可能為零值。

colorSpace
ColorSpace

ColorSpace 用來告訴你該在哪個色彩空間工作。 這個值不可能為零值。

傳回

用於建立網格時使用的 MeshSpecification 物件 這個值不能為 null。

屬性

備註

建立一個 MeshSpecification 物件。 這會使用預設的 alphaType ALPHA_TYPE_PREMULTIPLIED。

Android 參考資料。android.graphics.MeshSpecification.make

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

Make(MeshSpecification+Attribute[], Int32, MeshSpecification+Varying[], String, String, ColorSpace, MeshAlphaType)

建立一個 MeshSpecification 物件。

[Android.Runtime.Register("make", "([Landroid/graphics/MeshSpecification$Attribute;I[Landroid/graphics/MeshSpecification$Varying;Ljava/lang/String;Ljava/lang/String;Landroid/graphics/ColorSpace;I)Landroid/graphics/MeshSpecification;", "", ApiSince=34)]
public static Android.Graphics.MeshSpecification Make(Android.Graphics.MeshSpecification.Attribute[] attributes, int vertexStride, Android.Graphics.MeshSpecification.Varying[] varyings, string vertexShader, string fragmentShader, Android.Graphics.ColorSpace colorSpace, Android.Graphics.MeshAlphaType alphaType);
[<Android.Runtime.Register("make", "([Landroid/graphics/MeshSpecification$Attribute;I[Landroid/graphics/MeshSpecification$Varying;Ljava/lang/String;Ljava/lang/String;Landroid/graphics/ColorSpace;I)Landroid/graphics/MeshSpecification;", "", ApiSince=34)>]
static member Make : Android.Graphics.MeshSpecification.Attribute[] * int * Android.Graphics.MeshSpecification.Varying[] * string * string * Android.Graphics.ColorSpace * Android.Graphics.MeshAlphaType -> Android.Graphics.MeshSpecification

參數

attributes
MeshSpecification.Attribute[]

屬性所代表的屬性列表。 最多能裝8個。 這個值不可能為零值。

vertexStride
Int32

頂點步幅長度以位元組為單位。 這應該是單一頂點屬性的大小。 最高可達1024分。 價值介於1到1024(含)之間

varyings
MeshSpecification.Varying[]

由 Varying 代表的變異列表。 最多能裝6個。 請注意,預設 position 提供,無需在列表中提供,且不計入允許的6個變數。 這個值不可能為零值。

vertexShader
String

頂點著色器將被提供給網格。 確保在著色器中調整位置,才能獲得正確效果。 請參閱 MeshSpecification 以了解頂點著色器實作的範例。 這個值不可能為零值。

fragmentShader
String

將提供給網格的碎片著色器。 請參閱 MeshSpecification 以了解片段著色器實作的範例。 這個值不可能為零值。

colorSpace
ColorSpace

ColorSpace 用來告訴你該在哪個色彩空間工作。 這個值不可能為零值。

alphaType
MeshAlphaType

說明如何解讀像素的 alpha 分量。 必須是MeshSpecification.ALPHA_TYPE_UNKNOWN、MeshSpecification.ALPHA_TYPE_OPAQUE、MeshSpecification.ALPHA_TYPE_PREMULTIPLIED或MeshSpecification.ALPHA_TYPE_UNPREMULTIPLIED其中之一。價值屬於以下之一:ALPHA_TYPE_UNKNOWN ALPHA_TYPE_OPAQUE ALPHA_TYPE_PREMULTIPLIED ALPHA_TYPE_UNPREMULTIPLIED

傳回

用於建立網格時使用的 MeshSpecification 物件 這個值不能為 null。

屬性

備註

建立一個 MeshSpecification 物件。

Android 參考資料。android.graphics.MeshSpecification.make

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於