SKMeshSpecificationBuilder.AddAttribute 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 |
|---|---|
| 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.
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.
The data type of the attribute.
- offset
- Int32
The byte offset of the attribute within a vertex.