SKMeshSpecification.ToMeshIndexed 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.
Creates an indexed mesh from this specification using the supplied uniforms and child effects, reporting any validation errors.
public SkiaSharp.SKMesh? ToMeshIndexed(SkiaSharp.SKMeshMode mode, SkiaSharp.SKMeshVertexBuffer vertexBuffer, int vertexCount, int vertexOffset, SkiaSharp.SKMeshIndexBuffer indexBuffer, int indexCount, int indexOffset, SkiaSharp.SKRuntimeEffectUniforms? uniforms, SkiaSharp.SKRuntimeEffectChildren? children, SkiaSharp.SKRect bounds, out string? errors);
Parameters
- mode
- SKMeshMode
How the vertices are assembled into triangles.
- vertexBuffer
- SKMeshVertexBuffer
The buffer holding the vertex data.
- vertexCount
- Int32
The number of vertices to read.
- vertexOffset
- Int32
The byte offset of the first vertex.
- indexBuffer
- SKMeshIndexBuffer
The buffer holding the index data.
- indexCount
- Int32
The number of indices to read.
- indexOffset
- Int32
The byte offset of the first index.
- uniforms
- SKRuntimeEffectUniforms
The uniform values for the mesh programs, or null for none.
- children
- SKRuntimeEffectChildren
The child effects for the mesh programs, or null for none.
- bounds
- SKRect
The bounds of the drawn geometry, used for culling.
- errors
- String
When this method returns, contains the message describing why creation failed, or null on success.
Returns
The mesh, or null if it could not be created.