Skip to content
Phosphor
/
API Reference
Search
PlasmaZones
Libraries
Guides
Brand
Palette
About
GitHub
Phosphor
Qt6 / Wayland library suite for window-management tools
Loading...
Searching...
No Matches
IUniformExtension.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: 2026 fuddlesworth
2
// SPDX-License-Identifier: LGPL-2.1-or-later
3
4
#pragma once
5
6
#include <PhosphorShaders/phosphorshaders_export.h>
7
8
namespace
PhosphorShaders
{
9
17
class
PHOSPHORSHADERS_EXPORT
IUniformExtension
18
{
19
public
:
20
virtual
~IUniformExtension
() =
default
;
21
30
virtual
int
extensionSize
()
const
= 0;
31
34
virtual
void
write
(
char
* buffer,
int
offset)
const
= 0;
35
37
virtual
bool
isDirty
()
const
= 0;
38
40
virtual
void
clearDirty
() = 0;
41
57
virtual
bool
requiresPhysicalResolution
()
const
58
{
59
return
true
;
60
}
61
};
62
63
}
// namespace PhosphorShaders
PhosphorShaders::IUniformExtension
Interface for appending custom uniform data after the base UBO layout.
Definition
IUniformExtension.h:18
PhosphorShaders::IUniformExtension::~IUniformExtension
virtual ~IUniformExtension()=default
PhosphorShaders::IUniformExtension::isDirty
virtual bool isDirty() const =0
Whether the extension data has changed since the last write.
PhosphorShaders::IUniformExtension::requiresPhysicalResolution
virtual bool requiresPhysicalResolution() const
Whether iResolution in this extension's UBO should be uploaded in PHYSICAL pixels (DPR-scaled,...
Definition
IUniformExtension.h:57
PhosphorShaders::IUniformExtension::clearDirty
virtual void clearDirty()=0
Mark as clean after a successful write.
PhosphorShaders::IUniformExtension::write
virtual void write(char *buffer, int offset) const =0
Write extension data into buffer starting at offset.
PhosphorShaders::IUniformExtension::extensionSize
virtual int extensionSize() const =0
Size in bytes of the extension region (must respect std140 alignment).
PhosphorShaders
Definition
ShaderEffect.h:28
phosphor-shaders
include
PhosphorShaders
IUniformExtension.h
Generated by
1.9.8