Phosphor
Qt6 / Wayland library suite for window-management tools
 
Loading...
Searching...
No Matches
PhosphorShaders Namespace Reference

Namespaces

namespace  CustomColors
 Canonical key format for the customColors[N] slots in BaseUniforms.
 
namespace  CustomParams
 Canonical key format for the customParams[N].
 
namespace  UboRegions
 UBO region offsets and sizes for partial updates (reduces GPU bandwidth).
 

Classes

struct  BaseUniforms
 GPU uniform buffer layout following std140 rules (base region). More...
 
class  IUniformExtension
 Interface for appending custom uniform data after the base UBO layout. More...
 
class  IWallpaperProvider
 Abstract wallpaper provider interface. More...
 
class  ShaderIncludeResolver
 Resolves #include directives in GLSL shader source. More...
 
class  ShaderRegistry
 Registry of available shader effects. More...
 

Functions

PHOSPHORSHADERS_EXPORT std::unique_ptr< IWallpaperProvidercreateWallpaperProvider ()
 Create the default wallpaper provider for the current desktop environment.
 

Variables

constexpr double kShaderTimeWrap = 1024.0
 Time wrap period for float32 precision preservation.
 

Function Documentation

◆ createWallpaperProvider()

PHOSPHORSHADERS_EXPORT std::unique_ptr< IWallpaperProvider > PhosphorShaders::createWallpaperProvider ( )

Create the default wallpaper provider for the current desktop environment.

Detects KDE, Hyprland, Sway, GNOME and returns the appropriate implementation. Returns a fallback provider (empty path) if no supported DE is detected.

Variable Documentation

◆ kShaderTimeWrap

constexpr double PhosphorShaders::kShaderTimeWrap = 1024.0
constexpr

Time wrap period for float32 precision preservation.