Header menu logo Nu

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

BandTransform

Full Usage: BandTransform

Field type: Vector4
Field type: Vector4

BboxMinX

Full Usage: BboxMinX

Field type: single
Field type: single

BboxMinY

Full Usage: BboxMinY

Field type: single
Field type: single

BboxSizeX

Full Usage: BboxSizeX

Field type: single
Field type: single

BboxSizeY

Full Usage: BboxSizeY

Field type: single
Field type: single

Color

Full Usage: Color

Field type: Color
Field type: Color

CurveCount

Full Usage: CurveCount

Field type: uint32
Field type: uint32

Flags

Full Usage: Flags

Field type: uint32
Field type: uint32

HBands

Full Usage: HBands

Field type: uint32
Field type: uint32

MVP

Full Usage: MVP

Field type: Matrix4x4
Field type: Matrix4x4

VBands

Full Usage: VBands

Field type: uint32
Field type: uint32

Type something to start searching.