summaryrefslogtreecommitdiff
path: root/src/render/OpenGL.hpp
diff options
context:
space:
mode:
authordavc0n <dconti.dev@gmail.com>2025-05-08 00:07:35 +0200
committerGitHub <noreply@github.com>2025-05-08 00:07:35 +0200
commit22b12e3013adf66b462b174688f82bd53ba8e721 (patch)
treee0425f39a212135550c7842acef0eda006c2ebb5 /src/render/OpenGL.hpp
parent7a971735af6bfc7f8d74005afa02f6fd01228f89 (diff)
refactor: cshader class to sshader struct (#10324)
Diffstat (limited to 'src/render/OpenGL.hpp')
-rw-r--r--src/render/OpenGL.hpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/render/OpenGL.hpp b/src/render/OpenGL.hpp
index f4e9bdc4..3c7a3169 100644
--- a/src/render/OpenGL.hpp
+++ b/src/render/OpenGL.hpp
@@ -83,20 +83,20 @@ struct SPreparedShaders {
std::string TEXVERTSRC;
std::string TEXVERTSRC300;
std::string TEXVERTSRC320;
- CShader m_shQUAD;
- CShader m_shRGBA;
- CShader m_shPASSTHRURGBA;
- CShader m_shMATTE;
- CShader m_shRGBX;
- CShader m_shEXT;
- CShader m_shBLUR1;
- CShader m_shBLUR2;
- CShader m_shBLURPREPARE;
- CShader m_shBLURFINISH;
- CShader m_shSHADOW;
- CShader m_shBORDER1;
- CShader m_shGLITCH;
- CShader m_shCM;
+ SShader m_shQUAD;
+ SShader m_shRGBA;
+ SShader m_shPASSTHRURGBA;
+ SShader m_shMATTE;
+ SShader m_shRGBX;
+ SShader m_shEXT;
+ SShader m_shBLUR1;
+ SShader m_shBLUR2;
+ SShader m_shBLURPREPARE;
+ SShader m_shBLURFINISH;
+ SShader m_shSHADOW;
+ SShader m_shBORDER1;
+ SShader m_shGLITCH;
+ SShader m_shCM;
};
struct SMonitorRenderData {
@@ -309,7 +309,7 @@ class CHyprOpenGLImpl {
bool m_offloadedFramebuffer = false;
bool m_cmSupported = true;
- CShader m_finalScreenShader;
+ SShader m_finalScreenShader;
CTimer m_globalTimer;
SP<CTexture> m_missingAssetTexture;
@@ -334,9 +334,9 @@ class CHyprOpenGLImpl {
// returns the out FB, can be either Mirror or MirrorSwap
CFramebuffer* blurMainFramebufferWithDamage(float a, CRegion* damage);
- void passCMUniforms(const CShader&, const NColorManagement::SImageDescription& imageDescription, const NColorManagement::SImageDescription& targetImageDescription,
+ void passCMUniforms(const SShader&, const NColorManagement::SImageDescription& imageDescription, const NColorManagement::SImageDescription& targetImageDescription,
bool modifySDR = false);
- void passCMUniforms(const CShader&, const NColorManagement::SImageDescription& imageDescription);
+ void passCMUniforms(const SShader&, const NColorManagement::SImageDescription& imageDescription);
void renderTextureInternalWithDamage(SP<CTexture>, const CBox& box, float a, const CRegion& damage, int round = 0, float roundingPower = 2.0f, bool discardOpaque = false,
bool noAA = false, bool allowCustomUV = false, bool allowDim = false);
void renderTexturePrimitive(SP<CTexture> tex, const CBox& box);