7#include <PhosphorAnimation/phosphoranimation_export.h>
94 : m_effect(std::move(
effect))
97 [[nodiscard]] QString
id()
const override
103 return m_effect.name;
286 std::unique_ptr<PhosphorRegistry::MetadataPackLoader<AnimationPack>> m_loader;
QString displayName() const override
Definition AnimationShaderRegistry.h:101
QString id() const override
Definition AnimationShaderRegistry.h:97
AnimationPack(AnimationShaderEffect effect)
Definition AnimationShaderRegistry.h:93
const AnimationShaderEffect & effect() const
Definition AnimationShaderRegistry.h:105
QString defaultVertexShaderPath() const
The shared animation.vert a pack that declares no vertex stage falls back to: the first one that exis...
AnimationShaderRegistry(QObject *parent=nullptr)
static QString compositorVertexSource()
The vertex stage the COMPOSITOR compiles for every per-window animation pack that declares none of it...
QStringList searchPaths() const
void addSearchPaths(const QStringList &paths, PhosphorFsLoader::LiveReload liveReload=PhosphorFsLoader::LiveReload::On, PhosphorFsLoader::RegistrationOrder order=PhosphorFsLoader::RegistrationOrder::LowestPriorityFirst)
~AnimationShaderRegistry() override
QVariantMap translateAnimationParams(const QString &effectId, const QVariantMap &friendlyParams) const
Translate a friendly parameter map into the canonical slot keys consumed by both runtimes that drive ...
static QString compositorScreenVertexSource()
The vertex stage of the SCREEN-level passes (desktop switch and strip), which draw one full-output qu...
static QList< PhosphorShaders::EntryCandidate > animationEntryCandidates()
The direction-dispatched entry candidates (T1.5), in priority order: • vec4 pTransition(vec2 uv,...
static QString animationEntryPrologue()
The T1.4/T1.5 entry-point prologue for animation shaders: #version, the animation_uniforms....
QList< AnimationShaderEffect > availableEffects() const
QStringList sharedIncludePaths() const
The shared subdirectory of every search path that has one, in PRIORITY order: the user directory firs...
void addSearchPath(const QString &path, PhosphorFsLoader::LiveReload liveReload=PhosphorFsLoader::LiveReload::On)
void setUserPath(const QString &path)
static QString paramPreamble(const AnimationShaderEffect &effect)
Build the generated #define p_<id> <glsl-accessor> preamble for effect's declared parameters so autho...
AnimationShaderEffect effect(const QString &id) const
QStringList effectIds() const
bool hasEffect(const QString &id) const
static QVariantMap translateAnimationParams(const AnimationShaderEffect &effect, const QVariantMap &friendlyParams)
Static counterpart for callers that already hold the resolved AnimationShaderEffect (e....
Definition IFactoryBase.h:27
Definition AnimationShaderContract.h:10
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
Metadata for a single animation shader effect (transition).
Definition AnimationShaderEffect.h:47