@@ -906,7 +906,7 @@ static std::string processShader(const std::string& filename, const std::map<std
906
906
}
907
907
908
908
// shader has #include "CM.glsl"
909
- static void getCMShaderUniforms (CShader & shader) {
909
+ static void getCMShaderUniforms (SShader & shader) {
910
910
shader.skipCM = glGetUniformLocation (shader.program , " skipCM" );
911
911
shader.sourceTF = glGetUniformLocation (shader.program , " sourceTF" );
912
912
shader.targetTF = glGetUniformLocation (shader.program , " targetTF" );
@@ -922,7 +922,7 @@ static void getCMShaderUniforms(CShader& shader) {
922
922
}
923
923
924
924
// shader has #include "rounding.glsl"
925
- static void getRoundingShaderUniforms (CShader & shader) {
925
+ static void getRoundingShaderUniforms (SShader & shader) {
926
926
shader.topLeft = glGetUniformLocation (shader.program , " topLeft" );
927
927
shader.fullSize = glGetUniformLocation (shader.program , " fullSize" );
928
928
shader.radius = glGetUniformLocation (shader.program , " radius" );
@@ -1443,7 +1443,7 @@ void CHyprOpenGLImpl::renderTextureWithDamage(SP<CTexture> tex, const CBox& box,
1443
1443
1444
1444
static std::map<std::pair<uint32_t , uint32_t >, std::array<GLfloat, 9 >> primariesConversionCache;
1445
1445
1446
- void CHyprOpenGLImpl::passCMUniforms (const CShader & shader, const NColorManagement::SImageDescription& imageDescription,
1446
+ void CHyprOpenGLImpl::passCMUniforms (const SShader & shader, const NColorManagement::SImageDescription& imageDescription,
1447
1447
const NColorManagement::SImageDescription& targetImageDescription, bool modifySDR) {
1448
1448
glUniform1i (shader.sourceTF , imageDescription.transferFunction );
1449
1449
glUniform1i (shader.targetTF , targetImageDescription.transferFunction );
@@ -1487,7 +1487,7 @@ void CHyprOpenGLImpl::passCMUniforms(const CShader& shader, const NColorManageme
1487
1487
glUniformMatrix3fv (shader.convertMatrix , 1 , false , &primariesConversionCache[cacheKey][0 ]);
1488
1488
}
1489
1489
1490
- void CHyprOpenGLImpl::passCMUniforms (const CShader & shader, const SImageDescription& imageDescription) {
1490
+ void CHyprOpenGLImpl::passCMUniforms (const SShader & shader, const SImageDescription& imageDescription) {
1491
1491
passCMUniforms (shader, imageDescription, m_renderData.pMonitor ->m_imageDescription , true );
1492
1492
}
1493
1493
@@ -1519,7 +1519,7 @@ void CHyprOpenGLImpl::renderTextureInternalWithDamage(SP<CTexture> tex, const CB
1519
1519
Mat3x3 matrix = m_renderData.monitorProjection .projectBox (newBox, TRANSFORM, newBox.rot );
1520
1520
Mat3x3 glMatrix = m_renderData.projection .copy ().multiply (matrix);
1521
1521
1522
- CShader * shader = nullptr ;
1522
+ SShader * shader = nullptr ;
1523
1523
1524
1524
bool usingFinalShader = false ;
1525
1525
@@ -1716,7 +1716,7 @@ void CHyprOpenGLImpl::renderTexturePrimitive(SP<CTexture> tex, const CBox& box)
1716
1716
Mat3x3 matrix = m_renderData.monitorProjection .projectBox (newBox, TRANSFORM, newBox.rot );
1717
1717
Mat3x3 glMatrix = m_renderData.projection .copy ().multiply (matrix);
1718
1718
1719
- CShader * shader = &m_shaders->m_shPASSTHRURGBA ;
1719
+ SShader * shader = &m_shaders->m_shPASSTHRURGBA ;
1720
1720
1721
1721
glActiveTexture (GL_TEXTURE0);
1722
1722
glBindTexture (tex->m_target , tex->m_texID );
@@ -1767,7 +1767,7 @@ void CHyprOpenGLImpl::renderTextureMatte(SP<CTexture> tex, const CBox& box, CFra
1767
1767
Mat3x3 matrix = m_renderData.monitorProjection .projectBox (newBox, TRANSFORM, newBox.rot );
1768
1768
Mat3x3 glMatrix = m_renderData.projection .copy ().multiply (matrix);
1769
1769
1770
- CShader * shader = &m_shaders->m_shMATTE ;
1770
+ SShader * shader = &m_shaders->m_shMATTE ;
1771
1771
1772
1772
glUseProgram (shader->program );
1773
1773
@@ -1912,7 +1912,7 @@ CFramebuffer* CHyprOpenGLImpl::blurMainFramebufferWithDamage(float a, CRegion* o
1912
1912
}
1913
1913
1914
1914
// declare the draw func
1915
- auto drawPass = [&](CShader * pShader, CRegion* pDamage) {
1915
+ auto drawPass = [&](SShader * pShader, CRegion* pDamage) {
1916
1916
if (currentRenderToFB == PMIRRORFB)
1917
1917
PMIRRORSWAPFB->bind ();
1918
1918
else
0 commit comments