mirror of
https://github.com/wolfpld/tracy
synced 2025-04-30 04:43:53 +00:00
Move Range, RangeSlim out of View.
This commit is contained in:
parent
68e452802b
commit
2acc1d9670
@ -56,29 +56,6 @@ class View
|
|||||||
uint64_t count;
|
uint64_t count;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct Range
|
|
||||||
{
|
|
||||||
void StartFrame() { hiMin = hiMax = false; }
|
|
||||||
|
|
||||||
int64_t min = 0;
|
|
||||||
int64_t max = 0;
|
|
||||||
bool active = false;
|
|
||||||
bool hiMin = false;
|
|
||||||
bool hiMax = false;
|
|
||||||
bool modMin = false;
|
|
||||||
bool modMax = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
struct RangeSlim
|
|
||||||
{
|
|
||||||
bool operator==( const Range& other ) const { return other.active == active && other.min == min && other.max == max; }
|
|
||||||
bool operator!=( const Range& other ) const { return !(*this == other); }
|
|
||||||
void operator=( const Range& other ) { active = other.active; min = other.min; max = other.max; }
|
|
||||||
|
|
||||||
int64_t min, max;
|
|
||||||
bool active = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
struct VisData
|
struct VisData
|
||||||
{
|
{
|
||||||
|
@ -7,6 +7,30 @@
|
|||||||
namespace tracy
|
namespace tracy
|
||||||
{
|
{
|
||||||
|
|
||||||
|
struct Range
|
||||||
|
{
|
||||||
|
void StartFrame() { hiMin = hiMax = false; }
|
||||||
|
|
||||||
|
int64_t min = 0;
|
||||||
|
int64_t max = 0;
|
||||||
|
bool active = false;
|
||||||
|
bool hiMin = false;
|
||||||
|
bool hiMax = false;
|
||||||
|
bool modMin = false;
|
||||||
|
bool modMax = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
struct RangeSlim
|
||||||
|
{
|
||||||
|
bool operator==( const Range& other ) const { return other.active == active && other.min == min && other.max == max; }
|
||||||
|
bool operator!=( const Range& other ) const { return !(*this == other); }
|
||||||
|
void operator=( const Range& other ) { active = other.active; min = other.min; max = other.max; }
|
||||||
|
|
||||||
|
int64_t min, max;
|
||||||
|
bool active = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
struct ViewData
|
struct ViewData
|
||||||
{
|
{
|
||||||
int64_t zvStart = 0;
|
int64_t zvStart = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user