#pragma once #include namespace mbgl { namespace shaders { // VALIDATION ONLY: 30-02 State/Trail and 30-03 Camera/Mask proof parameters. struct alignas(16) ParticleGpuValidationUBO { std::array pass; std::array marker; std::array mask; // Formal RasterParticle visual controls: particle opacity, canonical // streak length, trail opacity, and Trail A/B fade multiplier. std::array visual; // west, north, east, south in normalized Web Mercator world coordinates. // Field textures are regional; they must never be sampled as global UVs. std::array fieldBounds; // Preferred respawn domain. It is the expanded stable viewport intersected // with fieldBounds, or fieldBounds when that intersection is unusable. std::array respawnBounds; // Per-texture signed velocity decoding scales in canonical m/s. // z is viewportDensityActive for the formal validation path. std::array fieldScale; // Host-owned base colours. They are independent from WeatherColor stops. std::array particleColor; std::array trailColor; std::array, 8> weatherStops; std::array, 8> weatherColors; std::array weatherRamp; std::array matrix; }; static_assert(sizeof(ParticleGpuValidationUBO) == 30 * 16); } // namespace shaders } // namespace mbgl