MeshSpecification.Make Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| Make(MeshSpecification+Attribute[], Int32, MeshSpecification+Varying[], String, String) |
Creates a MeshSpecification object for use within Mesh. |
| Make(MeshSpecification+Attribute[], Int32, MeshSpecification+Varying[], String, String, ColorSpace) |
Creates a MeshSpecification object. |
| Make(MeshSpecification+Attribute[], Int32, MeshSpecification+Varying[], String, String, ColorSpace, MeshAlphaType) |
Creates a MeshSpecification object. |
Make(MeshSpecification+Attribute[], Int32, MeshSpecification+Varying[], String, String)
Creates a MeshSpecification object for use within Mesh.
[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
Parameters
- attributes
- MeshSpecification.Attribute[]
list of attributes represented by Attribute. Can hold a max of 8. This value cannot be null.
- vertexStride
- Int32
length of vertex stride in bytes. This should be the size of a single vertex' attributes. Max of 1024 is accepted. Value is between 1 and 1024 inclusive
- varyings
- MeshSpecification.Varying[]
List of varyings represented by Varying. Can hold a max of 6. Note that position is provided by default, does not need to be provided in the list, and does not count towards the 6 varyings allowed. This value cannot be null.
- vertexShader
- String
vertex shader to be supplied to the mesh. Ensure that the position varying is set within the shader to get proper results. See MeshSpecification for an example vertex shader implementation. This value cannot be null.
- fragmentShader
- String
fragment shader to be supplied to the mesh. See MeshSpecification for an example fragment shader implementation. This value cannot be null.
Returns
MeshSpecification object for use when creating Mesh This value cannot be null.
- Attributes
Remarks
Android reference for android.graphics.MeshSpecification.make.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
Make(MeshSpecification+Attribute[], Int32, MeshSpecification+Varying[], String, String, ColorSpace)
Creates a MeshSpecification object.
[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
Parameters
- attributes
- MeshSpecification.Attribute[]
list of attributes represented by Attribute. Can hold a max of 8. This value cannot be null.
- vertexStride
- Int32
length of vertex stride in bytes. This should be the size of a single vertex' attributes. Max of 1024 is accepted. Value is between 1 and 1024 inclusive
- varyings
- MeshSpecification.Varying[]
List of varyings represented by Varying. Can hold a max of 6. Note that position is provided by default, does not need to be provided in the list, and does not count towards the 6 varyings allowed. This value cannot be null.
- vertexShader
- String
vertex shader to be supplied to the mesh. Ensure that the position varying is set within the shader to get proper results. See MeshSpecification for an example vertex shader implementation. This value cannot be null.
- fragmentShader
- String
fragment shader to be supplied to the mesh. See MeshSpecification for an example fragment shader implementation. This value cannot be null.
- colorSpace
- ColorSpace
ColorSpace to tell what color space to work in. This value cannot be null.
Returns
MeshSpecification object for use when creating Mesh This value cannot be null.
- Attributes
Remarks
Creates a MeshSpecification object. This uses a default alphaType of ALPHA_TYPE_PREMULTIPLIED.
Android reference for android.graphics.MeshSpecification.make.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
Make(MeshSpecification+Attribute[], Int32, MeshSpecification+Varying[], String, String, ColorSpace, MeshAlphaType)
Creates a MeshSpecification object.
[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
Parameters
- attributes
- MeshSpecification.Attribute[]
list of attributes represented by Attribute. Can hold a max of 8. This value cannot be null.
- vertexStride
- Int32
length of vertex stride in bytes. This should be the size of a single vertex' attributes. Max of 1024 is accepted. Value is between 1 and 1024 inclusive
- varyings
- MeshSpecification.Varying[]
List of varyings represented by Varying. Can hold a max of 6. Note that position is provided by default, does not need to be provided in the list, and does not count towards the 6 varyings allowed. This value cannot be null.
- vertexShader
- String
vertex shader to be supplied to the mesh. Ensure that the position varying is set within the shader to get proper results. See MeshSpecification for an example vertex shader implementation. This value cannot be null.
- fragmentShader
- String
fragment shader to be supplied to the mesh. See MeshSpecification for an example fragment shader implementation. This value cannot be null.
- colorSpace
- ColorSpace
ColorSpace to tell what color space to work in. This value cannot be null.
- alphaType
- MeshAlphaType
Describes how to interpret the alpha component for a pixel. Must be one of MeshSpecification.ALPHA_TYPE_UNKNOWN, MeshSpecification.ALPHA_TYPE_OPAQUE, MeshSpecification.ALPHA_TYPE_PREMULTIPLIED, or MeshSpecification.ALPHA_TYPE_UNPREMULTIPLIED Value is one of the following: ALPHA_TYPE_UNKNOWN ALPHA_TYPE_OPAQUE ALPHA_TYPE_PREMULTIPLIED ALPHA_TYPE_UNPREMULTIPLIED
Returns
MeshSpecification object for use when creating Mesh This value cannot be null.
- Attributes
Remarks
Creates a MeshSpecification object.
Android reference for android.graphics.MeshSpecification.make.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.