MAX_HATCH_PATTERN_SLOTS: 256

Maximum number of distinct hatch-pattern slots a single GPUMemoryBatch can carry. Each slot consumes 5 RGBA32F texels (= 80 bytes); the cap keeps the per-batch overhead under ~20 KB. The encoded slot index is a u16 in MeshAttributeTexture's material slot, so the hard ceiling is 65535.

Engineering drawings rarely reference more than a handful of distinct hatch fills (concrete, steel, brick, insulation — that's four), so a budget of 256 is generous.