#ifndef __TRACYCOLOR_HPP__ #define __TRACYCOLOR_HPP__ #include #include #include "../public/common/TracyForceInline.hpp" namespace tracy { uint32_t GetHsvColor( uint64_t hue, int value ); template static tracy_force_inline uint32_t HighlightColor( uint32_t color ) { return 0xFF000000 | ( std::min( 0xFF, ( ( ( color & 0x00FF0000 ) >> 16 ) + V ) ) << 16 ) | ( std::min( 0xFF, ( ( ( color & 0x0000FF00 ) >> 8 ) + V ) ) << 8 ) | ( std::min( 0xFF, ( ( ( color & 0x000000FF ) ) + V ) ) ); } } #endif