Add color channel filter to editor texture previews

This commit is contained in:
Marc Gilleron
2024-12-07 22:12:05 +00:00
parent 0c763602f9
commit c7a9d64eaf
13 changed files with 582 additions and 38 deletions

View File

@ -64,10 +64,6 @@ SafeNumeric<uint64_t> Memory::max_usage;
SafeNumeric<uint64_t> Memory::alloc_count;
inline bool is_power_of_2(size_t x) {
return x && ((x & (x - 1U)) == 0U);
}
void *Memory::alloc_aligned_static(size_t p_bytes, size_t p_alignment) {
DEV_ASSERT(is_power_of_2(p_alignment));