/** * VEHICLE DRAW COST — batches by render state, the way the web runtime draws a car. * * WHY NOT PRIMITIVES. The runtime (`vehicleBatchedDraw.ts`, helix-web-engine-new) batches a car's meshes by * render state across ALL parts: two meshes share one draw if their material (every property, textures by * identity plus sampling), vertex-attribute layout, indexed-ness and renderOrder agree. Counting glTF * primitives per node therefore over-counts any car whose parts share materials: splitting paint triangles * into one shared paint material adds a primitive to every part node (about 8 on the Subaru) but exactly one * batch. Merging part nodes is not an option (the runtime moves parts by node name), so the gate has to * count what is drawn. * * WHAT STAYS ONE DRAW EACH (not batchable, `exclusionReason` in the runtime): skinned meshes, morph targets, * vertex colours (`COLOR_0`), and non-triangle primitives. A mesh placed by N nodes is N meshes; they land in * one batch if batchable, N draws if not. * * IDENTICAL COPY. This file exists byte-for-byte in helix-backend-api * (`universal-items/verification/vehicle-batches.ts`) and helix-creator-cli (`glb/vehicleBatches.ts`), * with the same spec in both. If they disagree, change both. */ /** Draws the web runtime submits for this car: distinct batch keys plus every unbatchable mesh. */ export declare function countVehicleBatches(json: unknown): number;