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§
Enums§
- Child
Ptr - Object that allows passing a
Shader,ColorFilter, orBlenderas a child toRuntimeEffect::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
Attributesstruct. - Child
- Reflected description of a uniform child (shader, color filter, or blender) in the effect’s SkSL.
- Index
Buffer - The index data of an indexed
Mesh: unsigned 16-bit indices. Create one withmeshes::make_index_buffer()(CPU-backed) orgpu::meshes::make_index_buffer()(GPU-backed). - Mesh
- A vertex buffer, a topology, optionally an index buffer, and a compatible
MeshSpecification. - Mesh
Specification - 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.
- Vertex
Buffer - The vertex data of a
Mesh. Create one withmeshes::make_vertex_buffer()(CPU-backed) orgpu::meshes::make_vertex_buffer()(GPU-backed).