7#include <PhosphorSurface/phosphorsurface_export.h>
94 : m_effect(std::move(
effect))
97 [[nodiscard]] QString
id()
const override
103 return m_effect.name;
266 std::unique_ptr<PhosphorRegistry::MetadataPackLoader<SurfacePack>> m_loader;
Definition IFactoryBase.h:27
QString id() const override
Definition SurfaceShaderRegistry.h:97
const SurfaceShaderEffect & effect() const
Definition SurfaceShaderRegistry.h:105
SurfacePack(SurfaceShaderEffect effect)
Definition SurfaceShaderRegistry.h:93
QString displayName() const override
Definition SurfaceShaderRegistry.h:101
static QString compositorBufferVertexSource()
The vertex stage of every surface BUFFER pass on the compositor: a unit quad already in clip space (n...
static QString resolveBuiltinBufferShader(const QString &token, const QString &effectDir)
void addSearchPath(const QString &path, PhosphorFsLoader::LiveReload liveReload=PhosphorFsLoader::LiveReload::On)
QList< SurfaceShaderEffect > availableEffects() const
void addSearchPaths(const QStringList &paths, PhosphorFsLoader::LiveReload liveReload=PhosphorFsLoader::LiveReload::On, PhosphorFsLoader::RegistrationOrder order=PhosphorFsLoader::RegistrationOrder::LowestPriorityFirst)
static bool isBuiltinBufferShader(const QString &token)
Resolve a builtin: buffer-shader token (e.g.
QStringList effectIds() const
bool hasEffect(const QString &id) const
static QString surfaceEntryPrologue()
Entry-point scaffold, matching the overlay (pZone/pImage) and animation (pTransition/pIn+pOut) catego...
QStringList searchPaths() const
static QList< PhosphorShaders::EntryCandidate > surfaceEntryCandidates()
~SurfaceShaderRegistry() override
static QString compositorVertexSource()
The vertex stage the COMPOSITOR compiles for every surface pack that declares none of its own (the bu...
SurfaceShaderRegistry(QObject *parent=nullptr)
SurfaceShaderEffect effect(const QString &id) const
static QString compositorPresentVertexSource()
The vertex stage of the decoration PRESENT shader, the passthrough that samples a decorated window's ...
QVariantMap translateSurfaceParams(const QString &effectId, const QVariantMap &friendlyParams) const
Translate a friendly parameter map into the canonical slot keys consumed by both runtimes that drive ...
static QVariantMap translateSurfaceParams(const SurfaceShaderEffect &effect, const QVariantMap &friendlyParams)
Static counterpart for callers that already hold the resolved SurfaceShaderEffect (e....
static QString paramPreamble(const SurfaceShaderEffect &effect)
Build the generated #define p_<id> <glsl-accessor> preamble for effect's declared parameters so autho...
void setUserPath(const QString &path)
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 DecorationProfile.h:31
Metadata for a single surface shader effect.
Definition SurfaceShaderEffect.h:81