Format all C++ and Java code via clang-format

Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
This commit is contained in:
Konstantin Pastbin
2025-08-17 14:32:37 +07:00
parent 9f0290c0ec
commit bfffa1fff4
2169 changed files with 56441 additions and 64188 deletions

View File

@@ -9,8 +9,8 @@
namespace dp
{
GLGpuProgram::GLGpuProgram(std::string const & programName,
ref_ptr<Shader> vertexShader, ref_ptr<Shader> fragmentShader)
GLGpuProgram::GLGpuProgram(std::string const & programName, ref_ptr<Shader> vertexShader,
ref_ptr<Shader> fragmentShader)
: GpuProgram(programName)
, m_vertexShader(vertexShader)
, m_fragmentShader(fragmentShader)
@@ -82,10 +82,10 @@ GLGpuProgram::UniformsInfo const & GLGpuProgram::GetUniformsInfo() const
void GLGpuProgram::LoadUniformLocations()
{
static std::set<glConst> const kSupportedTypes = {
gl_const::GLFloatType, gl_const::GLFloatVec2, gl_const::GLFloatVec3, gl_const::GLFloatVec4,
gl_const::GLIntType, gl_const::GLIntVec2, gl_const::GLIntVec3, gl_const::GLIntVec4,
gl_const::GLFloatMat4, gl_const::GLSampler2D};
static std::set<glConst> const kSupportedTypes = {gl_const::GLFloatType, gl_const::GLFloatVec2, gl_const::GLFloatVec3,
gl_const::GLFloatVec4, gl_const::GLIntType, gl_const::GLIntVec2,
gl_const::GLIntVec3, gl_const::GLIntVec4, gl_const::GLFloatMat4,
gl_const::GLSampler2D};
auto const uniformsCount = GLFunctions::glGetProgramiv(m_programID, gl_const::GLActiveUniforms);
for (int i = 0; i < uniformsCount; ++i)
@@ -108,10 +108,8 @@ uint32_t GLGpuProgram::CalculateNumericUniformsCount() const
{
uint32_t counter = 0;
for (auto const & u : m_uniforms)
{
if (u.second.m_type != gl_const::GLSampler2D)
counter++;
}
return counter;
}
} // namespace dp