SKMeshSpecification.ToMesh 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 a non-indexed mesh from this specification using the supplied uniforms and child effects, reporting any validation errors.
public SkiaSharp.SKMesh? ToMesh(SkiaSharp.SKMeshMode mode, SkiaSharp.SKMeshVertexBuffer vertexBuffer, int vertexCount, int vertexOffset, 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.
- 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.