Edit

SKMeshSpecification Class

Definition

Describes the attributes, varyings and SkSL programs that define a custom vertex mesh.

public class SKMeshSpecification : SkiaSharp.SKObject
Inheritance
SKMeshSpecification

Fields

Name Description
MaxAttributes

The maximum number of attributes allowed in a mesh specification.

MaxStride

The maximum allowed vertex stride, in bytes.

MaxVaryings

The maximum number of varyings allowed in a mesh specification.

OffsetAlignment

The required byte alignment for an attribute offset.

StrideAlignment

The required byte alignment for a vertex stride.

Properties

Name Description
Children

Gets the names of the child slots declared by the specification.

ColorSpace

Gets the color space of the color produced by the fragment program.

Handle

Gets or sets the handle to the underlying native object.

(Inherited from SKObject)
IgnorePublicDispose

Gets a value indicating whether the call the public Dispose() should be no-op.

(Inherited from SKNativeObject)
IsDisposed

Gets a value indicating whether the object has already been disposed.

(Inherited from SKNativeObject)
OwnsHandle

Gets or sets a value indicating whether this object owns its handle and should destroy the native object when it is disposed.

(Inherited from SKNativeObject)
Uniforms

Gets the names of the uniforms declared by the specification.

UniformSize

Gets the combined size of the uniforms, in bytes.

VertexStride

Gets the size of a single vertex, in bytes.

Methods

Name Description
Create(ReadOnlySpan<SKMeshSpecificationAttribute>, Int32, ReadOnlySpan<SKMeshSpecificationVarying>, String, String, SKColorSpace, SKAlphaType, String)

Creates a mesh specification with an explicit color space and alpha type, reporting any compilation errors.

CreateBuilder(String, String)

Creates a builder for an SKMeshSpecification with the specified vertex and fragment SkSL programs.

CreateIndexedMeshBuilder()

Creates a builder for an indexed SKMesh using this specification.

CreateMeshBuilder()

Creates a builder for a non-indexed SKMesh using this specification.

Dispose()

Releases all resources used by this SKNativeObject.

(Inherited from SKNativeObject)
Dispose(Boolean)

Releases the unmanaged resources used by the specification and optionally releases the managed resources.

DisposeInternal()

Triggers a dispose, ignoring the value of IgnorePublicDispose.

(Inherited from SKNativeObject)
DisposeManaged()

Implemented by derived SKObject types to destroy any managed objects.

(Inherited from SKObject)
DisposeNative()

Implemented by derived SKObject types to destroy any native objects.

(Inherited from SKObject)
DisposeUnownedManaged()

Implemented by derived SKObject types to dispose managed objects that are not owned by this instance.

(Inherited from SKObject)
ToMesh(SKMeshMode, SKMeshVertexBuffer, Int32, Int32, SKRuntimeEffectUniforms, SKRuntimeEffectChildren, SKRect, String)

Creates a non-indexed mesh from this specification using the supplied uniforms and child effects, reporting any validation errors.

ToMeshIndexed(SKMeshMode, SKMeshVertexBuffer, Int32, Int32, SKMeshIndexBuffer, Int32, Int32, SKRuntimeEffectUniforms, SKRuntimeEffectChildren, SKRect, String)

Creates an indexed mesh from this specification using the supplied uniforms and child effects, reporting any validation errors.

Applies to