Phosphor
Qt6 / Wayland library suite for window-management tools
Loading...
Searching...
No Matches
ShaderPresetParse.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2026 fuddlesworth
2// SPDX-License-Identifier: LGPL-2.1-or-later
3
4#pragma once
5
6#include <PhosphorShaders/phosphorshaders_export.h>
7
8// For resolveWithinPack, which parsePackPresets runs every image-typed preset
9// value through. It is the guard for EVERY file a pack names, not a preset
10// concern, so it lives in its own header rather than here.
12
13#include <QDir>
14#include <QJsonObject>
15#include <QMap>
16#include <QSet>
17#include <QString>
18#include <QVariantMap>
19
20QT_BEGIN_NAMESPACE
21class QLoggingCategory;
22QT_END_NAMESPACE
23
24namespace PhosphorShaders {
25
32using PackPresets = QMap<QString, QVariantMap>;
33
87PHOSPHORSHADERS_EXPORT PackPresets parsePackPresets(const QDir& packDir, const QSet<QString>& imageParamIds,
88 const QJsonObject& root, const QLoggingCategory& log);
89
90} // namespace PhosphorShaders
Definition ShaderProfile.h:21
PHOSPHORSHADERS_EXPORT PackPresets parsePackPresets(const QDir &packDir, const QSet< QString > &imageParamIds, const QJsonObject &root, const QLoggingCategory &log)
Parse the presets object of a pack metadata root.
QMap< QString, QVariantMap > PackPresets
Pack-declared named parameter presets: preset name → { paramId → value }.
Definition ShaderPresetParse.h:32