7#include <PhosphorPointer/phosphorpointer_export.h>
48 : m_effect(std::move(
effect))
51 [[nodiscard]] QString
id()
const override
89 [[nodiscard]]
bool hasEffect(
const QString&
id)
const;
106 const QVariantMap& friendlyParams);
150 [[nodiscard]]
static QStringList
includePathsFor(
const QString& packDir,
const QString& packDataSubdir);
164 std::unique_ptr<PhosphorRegistry::MetadataPackLoader<PointerPack>> m_loader;
const PointerShaderEffect & effect() const
Definition PointerShaderRegistry.h:59
QString displayName() const override
Definition PointerShaderRegistry.h:55
PointerPack(PointerShaderEffect effect)
Definition PointerShaderRegistry.h:47
QString id() const override
Definition PointerShaderRegistry.h:51
QList< PointerShaderEffect > availableEffects() const
bool hasEffect(const QString &id) const
static QList< PhosphorShaders::EntryCandidate > pointerEntryCandidates()
static QString pointerEntryPrologue()
Entry-point scaffold: a pack defines vec4 pPointer(vec2 uv) and the harness prepends this prologue (#...
static QVariantMap translatePointerParams(const PointerShaderEffect &effect, const QVariantMap &friendlyParams)
Translate a friendly parameter map into the slot keys both runtimes consume.
QStringList searchPaths() const
void addSearchPath(const QString &path, PhosphorFsLoader::LiveReload liveReload=PhosphorFsLoader::LiveReload::On)
Single-path form of addSearchPaths.
~PointerShaderRegistry() override
PointerShaderRegistry(QObject *parent=nullptr)
PointerShaderEffect effect(const QString &id) const
void setUserPath(const QString &path)
Classify packs found under path as user-owned.
static QString compositorVertexSource()
The vertex stage the COMPOSITOR compiles for every pointer pack's main pass and buffer stages (classi...
void refresh()
Rescan the search paths now.
static QStringList includePathsFor(const QString &packDir, const QString &packDataSubdir)
Include search paths for a pack at packDir: its own neighbourhood {<packRoot>/shared,...
void addSearchPaths(const QStringList &paths, PhosphorFsLoader::LiveReload liveReload=PhosphorFsLoader::LiveReload::On, PhosphorFsLoader::RegistrationOrder order=PhosphorFsLoader::RegistrationOrder::LowestPriorityFirst)
QVariantMap translatePointerParams(const QString &effectId, const QVariantMap &friendlyParams) const
Registry-keyed convenience overload.
static QString paramPreamble(const PointerShaderEffect &effect)
The generated #define p_<id> <glsl-accessor> preamble for effect's declared parameters,...
Definition IFactoryBase.h:27
RegistrationOrder
Caller's declared priority direction for registerDirectories / setDirectories input.
Definition WatchedDirectorySet.h:64
@ LowestPriorityFirst
[sys-lowest, ..., sys-highest, user] — the canonical strategy view.
Definition WatchedDirectorySet.h:69
LiveReload
Opt-in policy for directory watching.
Definition WatchedDirectorySet.h:40
@ On
Definition WatchedDirectorySet.h:42
Definition PointerFrameState.h:16
Metadata for a single pointer shader effect.
Definition PointerShaderEffect.h:50