Module math

Source
Expand description

Mathematical utilities and types

Structs§

Color
Matrix4
ModelViewProjection
Point2
Position
Rect
RectF
Size
Timing
Vector2
Vector3
Vector4
Vector2I
Vector3I
Vertex
To use this vertex struct in your shader, you need to use this WGSL code as your vertex type:

Functions§

rgb_to_srgb
srgb_to_rgb