Phosphor
Qt6 / Wayland library suite for window-management tools
 
Loading...
Searching...
No Matches
AnimationShaderContract.h File Reference
#include <PhosphorShaders/CustomParamsKey.h>
#include <QString>

Go to the source code of this file.

Namespaces

namespace  PhosphorAnimationShaders
 
namespace  PhosphorAnimationShaders::AnimationShaderContract
 Cross-runtime named-uniform contract for animation/transition shaders.
 

Functions

QString PhosphorAnimationShaders::AnimationShaderContract::slotKey (int vec, char comp)
 Format a customParams slot key — thin forwarder onto PhosphorShaders::CustomParams::slotKey, the cross-library canonical helper.
 
QString PhosphorAnimationShaders::AnimationShaderContract::slotKey (int slot)
 Flat-slot overload: slot is 0..31 across the 8 vec4 slots.
 
QString PhosphorAnimationShaders::AnimationShaderContract::colorKey (int slot)
 Format a customColor slot key — thin forwarder onto PhosphorShaders::CustomColors::colorKey.
 

Variables

constexpr const char * PhosphorAnimationShaders::AnimationShaderContract::kITime = "iTime"
 float iTime — transition progress in [0.0, 1.0].
 
constexpr const char * PhosphorAnimationShaders::AnimationShaderContract::kIResolution = "iResolution"
 vec2 iResolution — surface size in logical pixels.
 
constexpr const char * PhosphorAnimationShaders::AnimationShaderContract::kITimeDelta = "iTimeDelta"
 float iTimeDelta — wall-clock seconds between consecutive paint ticks that fed this transition.
 
constexpr const char * PhosphorAnimationShaders::AnimationShaderContract::kIFrame = "iFrame"
 int iFrame — per-leg frame counter.
 
constexpr const char * PhosphorAnimationShaders::AnimationShaderContract::kIDate = "iDate"
 vec4 iDate — local-time (year, month, day, seconds-since-midnight).
 
constexpr const char * PhosphorAnimationShaders::AnimationShaderContract::kIIsReversed = "iIsReversed"
 int iIsReversed — direction signal for asymmetric leg rendering.
 
constexpr const char * PhosphorAnimationShaders::AnimationShaderContract::kISurfaceScreenPos = "iSurfaceScreenPos"
 vec4 iSurfaceScreenPos — the shader surface's position in screen coords plus the host screen dimensions, both in logical pixels.
 
constexpr const char * PhosphorAnimationShaders::AnimationShaderContract::kIAnchorSize = "iAnchorSize"
 vec2 iAnchorSize — captured anchor (card) pixel size in logical pixels.
 
constexpr const char * PhosphorAnimationShaders::AnimationShaderContract::kIAnchorPosInFbo = "iAnchorPosInFbo"
 vec2 iAnchorPosInFbo is the anchor's top-left position inside the FBO, in logical pixels.
 
constexpr const char * PhosphorAnimationShaders::AnimationShaderContract::kIAnchorRectInTexture = "iAnchorRectInTexture"
 vec4 iAnchorRectInTexture — the card's UV sub-rect within uTexture0, as (x, y, width, height) in the texture's [0, 1] space.
 
constexpr int PhosphorAnimationShaders::AnimationShaderContract::kMaxUserTextureSlots = 3
 Maximum number of user-declared textures per animation effect.
 
constexpr const char * PhosphorAnimationShaders::AnimationShaderContract::kIMouse = "iMouse"
 vec4 iMouse — cursor position in shader-local pixels.
 
constexpr const char * PhosphorAnimationShaders::AnimationShaderContract::kCustomParamsArray = "customParams"
 vec4 customParams[N] — per-effect declared parameter slots.
 
constexpr int PhosphorAnimationShaders::AnimationShaderContract::kMaxCustomParams = PhosphorShaders::CustomParams::kVecCount
 Number of vec4 slots in the customParams array (8).
 
constexpr int PhosphorAnimationShaders::AnimationShaderContract::kMaxParameterSlots = PhosphorShaders::CustomParams::kFlatSlotCount
 Number of float sub-slots (4 per vec4 × 8 vec4s = 32).
 
constexpr const char * PhosphorAnimationShaders::AnimationShaderContract::kCustomColorsArray = "customColors"
 vec4 customColors[N] — per-effect declared color parameter slots.
 
constexpr int PhosphorAnimationShaders::AnimationShaderContract::kMaxCustomColors = PhosphorShaders::CustomColors::kColorCount