#include <PhosphorShaders/phosphorshaders_export.h>#include <QHash>#include <QJsonObject>#include <QPair>#include <QString>#include <QStringView>#include <QVariant>#include <QVariantMap>#include <cstddef>#include <optional>Go to the source code of this file.
Classes | |
| struct | PhosphorShaders::ShaderPreset |
| One named parameter tuning for one shader pack. More... | |
Namespaces | |
| namespace | PhosphorShaders |
Typedefs | |
| using | PhosphorShaders::PresetValueRange = QPair<QVariant, QVariant> |
| A pack's declared numeric range for one parameter: { min, max }, either of which may be an invalid QVariant when the pack declares only one side. | |
| using | PhosphorShaders::PresetValueBounds = QHash<QString, PresetValueRange> |
| The declared ranges for a pack's parameters, by parameter id. | |
Enumerations | |
| enum class | PhosphorShaders::ShaderFamily { PhosphorShaders::Animation , PhosphorShaders::Surface , PhosphorShaders::Pointer , PhosphorShaders::Overlay } |
| Which shader family a preset belongs to. More... | |
Functions | |
| PHOSPHORSHADERS_EXPORT QLatin1StringView | PhosphorShaders::shaderFamilyToken (ShaderFamily family) |
Wire token for family: "animation" / "surface" / "pointer" / "overlay". | |
| template<typename ParameterList> | |
| PresetValueBounds | PhosphorShaders::presetBoundsFrom (const ParameterList ¶meters) |
| Collect PresetValueBounds from any family's declared parameter list. | |
| PHOSPHORSHADERS_EXPORT QVariantMap | PhosphorShaders::overlayPresetDeltas (const QVariantMap &base, const QVariantMap &deltas) |
Overlay deltas onto base and return the result — the one definition of how a preset and an assignment's own parameter edits combine. | |
Variables | |
| constexpr std::size_t | PhosphorShaders::ShaderFamilyCount = 4 |
| How many families there are, for the one-slot-per-family arrays that index by static_cast<std::size_t>(family). | |