Phosphor
Qt6 / Wayland library suite for window-management tools
 
Loading...
Searching...
No Matches
ZoneShaderCommon.h File Reference
#include <PhosphorShaders/BaseUniforms.h>
#include <QColor>
#include <QRectF>
#include <QVector>
#include <QVector4D>
#include <cstddef>

Go to the source code of this file.

Classes

struct  PhosphorRendering::ZoneShaderUniforms
 GPU uniform buffer layout — BaseUniforms + zone extension. More...
 
struct  PhosphorRendering::ZoneData
 Per-zone payload pushed into the UBO each frame. More...
 
struct  PhosphorRendering::ZoneRect
 Parsed zone rectangle data for shader rendering. More...
 
struct  PhosphorRendering::ZoneColor
 Parsed zone color data for shader rendering. More...
 
struct  PhosphorRendering::ZoneDataSnapshot
 Thread-safe zone data snapshot for the render thread. More...
 

Namespaces

namespace  PhosphorRendering
 

Variables

constexpr int PhosphorRendering::MaxZones = 64
 Maximum number of zones the zone-aware UBO supports.
 
constexpr std::size_t PhosphorRendering::kZoneExtensionBytes = 4 * sizeof(float[MaxZones][4]) + 4 * sizeof(float)
 Size of the zone extension region: four vec4[MaxZones] arrays, plus the uZoneScale scalar and the std140 tail pad that rounds it to 16 bytes.