Edit

SKMeshSpecificationBuilder.AddAttribute Method

Definition

Overloads

Name Description
AddAttribute(String, SKMeshSpecificationAttributeType)

Adds a vertex attribute immediately after the previous attribute and advances the calculated stride by the attribute size.

AddAttribute(String, SKMeshSpecificationAttributeType, Int32)

Adds a vertex attribute at the specified byte offset and updates the calculated stride if needed.

AddAttribute(String, SKMeshSpecificationAttributeType)

Adds a vertex attribute immediately after the previous attribute and advances the calculated stride by the attribute size.

public void AddAttribute(string name, SkiaSharp.SKMeshSpecificationAttributeType type);

Parameters

name
String

The name of the attribute as referenced in the SkSL vertex program.

type
SKMeshSpecificationAttributeType

The data type of the attribute.

Applies to

AddAttribute(String, SKMeshSpecificationAttributeType, Int32)

Adds a vertex attribute at the specified byte offset and updates the calculated stride if needed.

public void AddAttribute(string name, SkiaSharp.SKMeshSpecificationAttributeType type, int offset);

Parameters

name
String

The name of the attribute as referenced in the SkSL vertex program.

type
SKMeshSpecificationAttributeType

The data type of the attribute.

offset
Int32

The byte offset of the attribute within a vertex.

Applies to