fix: preserve canonical color semantics after QBIN decode
This commit is contained in:
@@ -5,16 +5,23 @@
|
||||
|
||||
#include <optional>
|
||||
#include <memory>
|
||||
#include <variant>
|
||||
|
||||
namespace mbgl::particle {
|
||||
|
||||
// Renderer-neutral canonical snapshots. QBIN stays confined to ingress and
|
||||
// field Core; renderers receive only the existing canonical field shape.
|
||||
enum class MaterializedColorValueSource : uint8_t {
|
||||
Scalar,
|
||||
VectorMagnitude,
|
||||
};
|
||||
|
||||
struct MaterializedColorProjection {
|
||||
std::shared_ptr<const ParticleFieldSnapshot> t0;
|
||||
std::shared_ptr<const ParticleFieldSnapshot> t1;
|
||||
ColorProjectionContentIdentity contentIdentity;
|
||||
FieldSampleState sampleState;
|
||||
MaterializedColorValueSource valueSource = MaterializedColorValueSource::Scalar;
|
||||
};
|
||||
|
||||
struct MaterializedParticleProjection {
|
||||
|
||||
Reference in New Issue
Block a user