mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-07 13:03:54 +00:00
Format all C++ and Java code via clang-format
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
This commit is contained in:
@@ -20,17 +20,16 @@ struct MemoryComparer
|
||||
TEST_EQUAL(memcmp(m_mem, data, size), 0, ());
|
||||
}
|
||||
|
||||
void cmpSubImage(uint32_t /*x*/, uint32_t /*y*/, uint32_t width, uint32_t height, glConst layout,
|
||||
glConst pixelFormat, void const * data) const
|
||||
void cmpSubImage(uint32_t /*x*/, uint32_t /*y*/, uint32_t width, uint32_t height, glConst layout, glConst pixelFormat,
|
||||
void const * data) const
|
||||
{
|
||||
uint32_t channelCount = 0;
|
||||
if (layout == gl_const::GLRGBA || layout == gl_const::GLRGBA8 || layout == gl_const::GLRGBA4)
|
||||
channelCount = 4;
|
||||
else if (layout == gl_const::GLRGB)
|
||||
channelCount = 3;
|
||||
else if (layout == gl_const::GLAlpha || layout == gl_const::GLAlpha8 ||
|
||||
layout == gl_const::GLLuminance || layout == gl_const::GLLuminance8 ||
|
||||
layout == gl_const::GLAlphaLuminance || layout == gl_const::GLRed)
|
||||
else if (layout == gl_const::GLAlpha || layout == gl_const::GLAlpha8 || layout == gl_const::GLLuminance ||
|
||||
layout == gl_const::GLLuminance8 || layout == gl_const::GLAlphaLuminance || layout == gl_const::GLRed)
|
||||
{
|
||||
channelCount = 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user