Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks
Which means that reduz' beloved style which we all became used to will now be changed automatically to remove the first empty line. This makes us lean closer to 1TBS (the one true brace style) instead of hybridating it with some Allman-inspired spacing. There's still the case of braces around single-statement blocks that needs to be addressed (but clang-format can't help with that, but clang-tidy may if we agree about it). Part of #33027.
This commit is contained in:
@ -54,7 +54,6 @@ basist::etc1_global_selector_codebook *sel_codebook = nullptr;
|
||||
|
||||
#ifdef TOOLS_ENABLED
|
||||
static Vector<uint8_t> basis_universal_packer(const Ref<Image> &p_image, Image::UsedChannels p_channels) {
|
||||
|
||||
Vector<uint8_t> budata;
|
||||
|
||||
{
|
||||
@ -163,7 +162,6 @@ static Ref<Image> basis_universal_unpacker(const Vector<uint8_t> &p_buffer) {
|
||||
|
||||
switch (*(uint32_t *)(ptr)) {
|
||||
case BASIS_DECOMPRESS_RG: {
|
||||
|
||||
if (RS::get_singleton()->has_os_feature("rgtc")) {
|
||||
format = basist::transcoder_texture_format::cTFBC5; // get this from renderer
|
||||
imgfmt = Image::FORMAT_RGTC_RG;
|
||||
@ -186,7 +184,6 @@ static Ref<Image> basis_universal_unpacker(const Vector<uint8_t> &p_buffer) {
|
||||
format = basist::transcoder_texture_format::cTFBC1; // get this from renderer
|
||||
imgfmt = Image::FORMAT_DXT1;
|
||||
} else if (RS::get_singleton()->has_os_feature("etc")) {
|
||||
|
||||
format = basist::transcoder_texture_format::cTFETC1; // get this from renderer
|
||||
imgfmt = Image::FORMAT_ETC;
|
||||
} else {
|
||||
@ -249,7 +246,6 @@ static Ref<Image> basis_universal_unpacker(const Vector<uint8_t> &p_buffer) {
|
||||
int ofs = 0;
|
||||
tr.start_transcoding(ptr, size);
|
||||
for (uint32_t i = 0; i < info.m_total_levels; i++) {
|
||||
|
||||
basist::basisu_image_level_info level;
|
||||
tr.get_image_level_info(ptr, size, level, 0, i);
|
||||
|
||||
@ -279,7 +275,6 @@ void register_basis_universal_types() {
|
||||
}
|
||||
|
||||
void unregister_basis_universal_types() {
|
||||
|
||||
#ifdef TOOLS_ENABLED
|
||||
delete sel_codebook;
|
||||
Image::basis_universal_packer = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user