Phosphor
Qt6 / Wayland library suite for window-management tools
Loading...
Searching...
No Matches
PhosphorShaders::ShaderRegistry::ShaderInfo Struct Reference

#include <PhosphorShaders/ShaderRegistry.h>

Public Member Functions

bool isValid () const

Public Attributes

QString id
QString name
QString description
QString author
QString version
QUrl shaderUrl
QString sourcePath
QString vertexShaderPath
QString packDir
 Absolute pack directory (where metadata.json lives).
QStringList bufferShaderPaths
QString previewPath
QString category
QList< ParameterInfo > parameters
QMap< QString, QVariantMap > presets
bool isUserShader = false
bool isMultipass = false
bool useWallpaper = false
bool bufferFeedback = false
qreal bufferScale = 1.0
bool halfFloatBuffers = true
 Buffer-pass texel format: RGBA16F when true (default — safe for HDR, signed data, and feedback accumulators), RGBA8 when the pack declares its buffers hold plain clamped colour.
QString bufferWrap = QStringLiteral("clamp")
QStringList bufferWraps
QString bufferFilter = QStringLiteral("linear")
QStringList bufferFilters
bool useDepthBuffer = false

Member Function Documentation

◆ isValid()

bool PhosphorShaders::ShaderRegistry::ShaderInfo::isValid ( ) const
inline

Member Data Documentation

◆ author

QString PhosphorShaders::ShaderRegistry::ShaderInfo::author

◆ bufferFeedback

bool PhosphorShaders::ShaderRegistry::ShaderInfo::bufferFeedback = false

◆ bufferFilter

QString PhosphorShaders::ShaderRegistry::ShaderInfo::bufferFilter = QStringLiteral("linear")

◆ bufferFilters

QStringList PhosphorShaders::ShaderRegistry::ShaderInfo::bufferFilters

◆ bufferScale

qreal PhosphorShaders::ShaderRegistry::ShaderInfo::bufferScale = 1.0

◆ bufferShaderPaths

QStringList PhosphorShaders::ShaderRegistry::ShaderInfo::bufferShaderPaths

◆ bufferWrap

QString PhosphorShaders::ShaderRegistry::ShaderInfo::bufferWrap = QStringLiteral("clamp")

◆ bufferWraps

QStringList PhosphorShaders::ShaderRegistry::ShaderInfo::bufferWraps

◆ category

QString PhosphorShaders::ShaderRegistry::ShaderInfo::category

◆ description

QString PhosphorShaders::ShaderRegistry::ShaderInfo::description

◆ halfFloatBuffers

bool PhosphorShaders::ShaderRegistry::ShaderInfo::halfFloatBuffers = true

Buffer-pass texel format: RGBA16F when true (default — safe for HDR, signed data, and feedback accumulators), RGBA8 when the pack declares its buffers hold plain clamped colour.

Halves buffer bandwidth on the packs that can afford it.

◆ id

QString PhosphorShaders::ShaderRegistry::ShaderInfo::id

◆ isMultipass

bool PhosphorShaders::ShaderRegistry::ShaderInfo::isMultipass = false

◆ isUserShader

bool PhosphorShaders::ShaderRegistry::ShaderInfo::isUserShader = false

◆ name

QString PhosphorShaders::ShaderRegistry::ShaderInfo::name

◆ packDir

QString PhosphorShaders::ShaderRegistry::ShaderInfo::packDir

Absolute pack directory (where metadata.json lives).

The frag may sit in a subdirectory of the pack, so deriving the pack root from sourcePath is wrong — consumers needing the pack root (watch globs, content signature, image-param containment) read this.

◆ parameters

QList<ParameterInfo> PhosphorShaders::ShaderRegistry::ShaderInfo::parameters

◆ presets

QMap<QString, QVariantMap> PhosphorShaders::ShaderRegistry::ShaderInfo::presets

◆ previewPath

QString PhosphorShaders::ShaderRegistry::ShaderInfo::previewPath

◆ shaderUrl

QUrl PhosphorShaders::ShaderRegistry::ShaderInfo::shaderUrl

◆ sourcePath

QString PhosphorShaders::ShaderRegistry::ShaderInfo::sourcePath

◆ useDepthBuffer

bool PhosphorShaders::ShaderRegistry::ShaderInfo::useDepthBuffer = false

◆ useWallpaper

bool PhosphorShaders::ShaderRegistry::ShaderInfo::useWallpaper = false

◆ version

QString PhosphorShaders::ShaderRegistry::ShaderInfo::version

◆ vertexShaderPath

QString PhosphorShaders::ShaderRegistry::ShaderInfo::vertexShaderPath

The documentation for this struct was generated from the following file: