#include <QLatin1Char>#include <QLatin1String>#include <QString>Go to the source code of this file.
Namespaces | |
| namespace | PhosphorShaders |
| namespace | PhosphorShaders::CustomParams |
Canonical key format for the customParams[N]. | |
| namespace | PhosphorShaders::CustomColors |
Canonical key format for the customColors[N] slots in BaseUniforms. | |
Functions | |
| bool | PhosphorShaders::isValidWrapToken (const QString &wrap) |
The accepted texture / buffer wrap vocabulary, shared by every validation site across the shader registries (overlay image-param parse, surface metadata parse, per-slot texture parse, and runtime override translation). | |
| bool | PhosphorShaders::isValidFilterToken (const QString &filter) |
The accepted buffer filter vocabulary: linear / nearest / mipmap. | |
| QString | PhosphorShaders::CustomParams::slotKey (int vec, char comp) |
Format a customParams slot key from explicit (vec, comp) pair. | |
| QString | PhosphorShaders::CustomParams::slotKey (int slot) |
Format a customParams slot key from a flat sub-slot index in [0, kFlatSlotCount). | |
| QString | PhosphorShaders::CustomParams::glslAccessor (int slot) |
GLSL author-facing accessor for a flat scalar sub-slot — the form a shader author reads in fragment source, as opposed to slotKey()'s QVariantMap serialisation form. | |
| QString | PhosphorShaders::CustomColors::colorKey (int slot) |
| Format a customColor key from a 0-based slot index. | |
| QString | PhosphorShaders::CustomColors::glslAccessor (int slot) |
GLSL author-facing accessor for a color slot — the form a shader author reads in fragment source, as opposed to colorKey()'s QVariantMap serialisation form. | |
Variables | |
| constexpr double | PhosphorShaders::kMinBufferScale = 0.125 |
Lower / upper bounds on a multipass bufferScale (FBO downscale factor). | |
| constexpr double | PhosphorShaders::kMaxBufferScale = 1.0 |
| constexpr int | PhosphorShaders::kMaxBufferPasses = 4 |
| Maximum number of multipass buffer passes a pack may declare. | |
| constexpr int | PhosphorShaders::CustomParams::kVecCount = 8 |
Number of vec4 slots in BaseUniforms::customParams[8]. | |
| constexpr int | PhosphorShaders::CustomParams::kFlatSlotCount = 4 * kVecCount |
| Number of float sub-slots across all vec4s (4 × kVecCount). | |
| constexpr int | PhosphorShaders::CustomColors::kColorCount = 16 |
Number of color slots in BaseUniforms::customColors[16]. | |