ShapeGPU Type
Per-shape data uploaded to the GPU uniform buffer. Layout matches the GLSL std430 layout in Contour.vert/frag: mat4 MVP (64B), vec4 color (16B), uint curveCount (4B), uint flags (4B), uint hBands (4B), uint vBands (4B), vec2 bboxMin (8B), vec2 bboxSize (8B), vec4 bandTransform (16B) = 128B. The vertex shader maps a [0,1] unit quad to [bboxMin, bboxMin+bboxSize]. Flags bit layout (must match Contour.frag): bit 0: fillMode (0=NonZero, 1=EvenOdd)
Record fields
| Record Field | Description |
|
|
Full Usage:
BboxMinX
Field type: single
|
|
Full Usage:
BboxMinY
Field type: single
|
|
Full Usage:
BboxSizeX
Field type: single
|
|
Full Usage:
BboxSizeY
Field type: single
|
|
|
|
Full Usage:
CurveCount
Field type: uint32
|
|
Full Usage:
Flags
Field type: uint32
|
|
Full Usage:
HBands
Field type: uint32
|
|
|
|
Full Usage:
VBands
Field type: uint32
|
|
Nu