-
Notifications
You must be signed in to change notification settings - Fork 17
/
ProfilerTask.h
48 lines (39 loc) · 1.51 KB
/
ProfilerTask.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#pragma once
#include <cstdint>
#include <string>
namespace legit
{
namespace Colors
{
//https://flatuicolors.com/palette/defo
#define RGBA_LE(col) (((col & 0xff000000) >> (3 * 8)) + ((col & 0x00ff0000) >> (1 * 8)) + ((col & 0x0000ff00) << (1 * 8)) + ((col & 0x000000ff) << (3 * 8)))
const static uint32_t turqoise = RGBA_LE(0x1abc9cffu);
const static uint32_t greenSea = RGBA_LE(0x16a085ffu);
const static uint32_t emerald = RGBA_LE(0x2ecc71ffu);
const static uint32_t nephritis = RGBA_LE(0x27ae60ffu);
const static uint32_t peterRiver = RGBA_LE(0x3498dbffu); //blue
const static uint32_t belizeHole = RGBA_LE(0x2980b9ffu);
const static uint32_t amethyst = RGBA_LE(0x9b59b6ffu);
const static uint32_t wisteria = RGBA_LE(0x8e44adffu);
const static uint32_t sunFlower = RGBA_LE(0xf1c40fffu);
const static uint32_t orange = RGBA_LE(0xf39c12ffu);
const static uint32_t carrot = RGBA_LE(0xe67e22ffu);
const static uint32_t pumpkin = RGBA_LE(0xd35400ffu);
const static uint32_t alizarin = RGBA_LE(0xe74c3cffu);
const static uint32_t pomegranate = RGBA_LE(0xc0392bffu);
const static uint32_t clouds = RGBA_LE(0xecf0f1ffu);
const static uint32_t silver = RGBA_LE(0xbdc3c7ffu);
const static uint32_t imguiText = RGBA_LE(0xF2F5FAFFu);
}
struct ProfilerTask
{
double startTime;
double endTime;
std::string name;
uint32_t color;
double GetLength()
{
return endTime - startTime;
}
};
}