Module shape

Source
Expand description

Shape rendering pipeline for UI components.

This module provides the GPU pipeline and associated data structures for rendering vector-based shapes in Tessera UI components. Supported shapes include rectangles, rounded rectangles (with G2 curve support), ellipses, and arbitrary polygons.

The pipeline supports advanced visual effects such as drop shadows and interactive ripples, making it suitable for rendering button backgrounds, surfaces, and other interactive or decorative UI elements.

Typical usage scenarios include:

  • Drawing backgrounds and outlines for buttons, surfaces, and containers
  • Rendering custom-shaped UI elements with smooth corners
  • Applying shadow and ripple effects for interactive feedback

This module is intended to be used internally by basic UI components and registered as part of the rendering pipeline system.

Structs§

RippleProps
Properties for ripple effect animation
ShadowProps
Properties for shadow, used in BasicDrawable variants
ShapePipeline
Pipeline for rendering vector shapes in UI components.
ShapeUniforms
Uniforms for shape rendering pipeline.
ShapeVertex
Vertex for any shapes.
ShapeVertexData
Vertex data for shape triangulation.

Enums§

ShapeCommand
Represents a shape drawable

Constants§

MAX_CONCURRENT_SHAPES