Skip to main content

Module mesh

Module mesh 

Expand description

Custom meshes: a MeshSpecification with SkSL vertex and fragment programs, and Meshes that draw vertex (and index) buffers with it.

Modules§

attribute
varying

Enums§

ChildPtr
Object that allows passing a Shader, ColorFilter, or Blender as a child to RuntimeEffect::make_shader() and friends.
Mode

Type Aliases§

Attribute
A vertex attribute: its type, its byte offset inside a vertex, and the name of the field in the SkSL Attributes struct.
Child
Reflected description of a uniform child (shader, color filter, or blender) in the effect’s SkSL.
IndexBuffer
The index data of an indexed Mesh: unsigned 16-bit indices. Create one with meshes::make_index_buffer() (CPU-backed) or gpu::meshes::make_index_buffer() (GPU-backed).
Mesh
A vertex buffer, a topology, optionally an index buffer, and a compatible MeshSpecification.
MeshSpecification
A specification for custom meshes. Specifies the vertex buffer attributes and stride, the vertex program that produces a user-defined set of varyings, and a fragment program that ingests the interpolated varyings and produces local coordinates for shading and optionally a color.
Uniform
Reflected description of a uniform variable in the effect’s SkSL.
Varying
A value written by the vertex program and read, interpolated, by the fragment program.
VertexBuffer
The vertex data of a Mesh. Create one with meshes::make_vertex_buffer() (CPU-backed) or gpu::meshes::make_vertex_buffer() (GPU-backed).