Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/angle
Path: blob/main_old/src/tests/restricted_traces/restricted_traces_autogen.h
1693 views
1
// GENERATED FILE - DO NOT EDIT.
2
// Generated by gen_restricted_traces.py using data from restricted_traces.json
3
//
4
// Copyright 2020 The ANGLE Project Authors. All rights reserved.
5
// Use of this source code is governed by a BSD-style license that can be
6
// found in the LICENSE file.
7
//
8
// restricted_traces_autogen: Types and enumerations for trace tests.
9
10
#ifndef ANGLE_RESTRICTED_TRACES_AUTOGEN_H_
11
#define ANGLE_RESTRICTED_TRACES_AUTOGEN_H_
12
13
#include <EGL/egl.h>
14
#include <KHR/khrplatform.h>
15
#include <cstdint>
16
#include <vector>
17
18
#include "restricted_traces_export.h"
19
20
namespace trace_angle
21
{
22
using GenericProc = void (*)();
23
using LoadProc = GenericProc(KHRONOS_APIENTRY *)(const char *);
24
ANGLE_TRACE_LOADER_EXPORT void LoadEGL(LoadProc loadProc);
25
ANGLE_TRACE_LOADER_EXPORT void LoadGLES(LoadProc loadProc);
26
} // namespace trace_angle
27
28
namespace angle
29
{
30
enum class RestrictedTraceID
31
{
32
aliexpress,
33
among_us,
34
angry_birds_2_1500,
35
arena_of_valor,
36
asphalt_8,
37
avakin_life,
38
aztec_ruins,
39
beach_buggy_racing,
40
brawl_stars,
41
bricks_breaker_quest,
42
bubble_shooter,
43
bus_simulator_indonesia,
44
call_break_offline_card_game,
45
candy_crush_500,
46
candy_crush_soda_saga,
47
car_parking_multiplayer,
48
clash_of_clans,
49
clash_royale,
50
cod_mobile,
51
coin_master,
52
command_and_conquer_rivals,
53
cookie_run_kingdom,
54
disney_tsum_tsum,
55
dr_driving,
56
dragon_ball_legends,
57
dragon_raja,
58
efootball_pes_2021,
59
egypt_1500,
60
eight_ball_pool,
61
extreme_car_driving_simulator,
62
fallout_shelter_online,
63
farm_heroes_saga,
64
fate_grand_order,
65
fifa_mobile,
66
final_fantasy,
67
free_fire,
68
gardenscapes,
69
genshin_impact,
70
google_maps,
71
happy_color,
72
hay_day,
73
hearthstone,
74
higgs_domino_island,
75
hill_climb_racing,
76
homescapes,
77
idle_heroes,
78
junes_journey,
79
kartrider_rush,
80
klondike_adventures,
81
league_of_legends_wild_rift,
82
lego_legacy,
83
lineage_m,
84
ludo_king,
85
magic_tiles_3,
86
manhattan_10,
87
manhattan_31,
88
mario_kart_tour,
89
marvel_contest_of_champions,
90
messenger_lite,
91
minecraft,
92
mobile_legends,
93
nba2k20_800,
94
one_punch_man,
95
plants_vs_zombies_2,
96
pokemon_go,
97
professional_baseball_spirits,
98
pubg_mobile_battle_royale,
99
pubg_mobile_lite,
100
pubg_mobile_skydive,
101
ragnarok_m_eternal_love,
102
raid_shadow_legends,
103
real_commando_secret_mission,
104
real_cricket_20,
105
real_gangster_crime,
106
rise_of_kingdoms,
107
romancing_saga,
108
rope_hero_vice_town,
109
saint_seiya_awakening,
110
sakura_school_simulator,
111
scrabble_go,
112
shadow_fight_2,
113
slingshot_test1,
114
slingshot_test2,
115
sniper_3d,
116
sonic_the_hedgehog,
117
standoff_2,
118
subway_princess_runner,
119
subway_surfers,
120
summoners_war,
121
talking_tom_hero_dash,
122
temple_run_2,
123
temple_run_300,
124
toon_blast,
125
township,
126
trex_200,
127
whatsapp,
128
words_with_friends_2,
129
wordscapes,
130
world_of_kings,
131
world_of_tanks_blitz,
132
world_war_doh,
133
worms_zone_io,
134
InvalidEnum,
135
EnumCount = InvalidEnum
136
};
137
138
static constexpr size_t kTraceInfoMaxNameLen = 32;
139
140
static constexpr uint32_t kDefaultReplayContextClientMajorVersion = 3;
141
static constexpr uint32_t kDefaultReplayContextClientMinorVersion = 1;
142
static constexpr uint32_t kDefaultReplayDrawSurfaceColorSpace = EGL_COLORSPACE_LINEAR;
143
144
struct TraceInfo
145
{
146
uint32_t contextClientMajorVersion;
147
uint32_t contextClientMinorVersion;
148
uint32_t startFrame;
149
uint32_t endFrame;
150
uint32_t drawSurfaceWidth;
151
uint32_t drawSurfaceHeight;
152
uint32_t drawSurfaceColorSpace;
153
char name[kTraceInfoMaxNameLen];
154
};
155
156
ANGLE_TRACE_EXPORT const TraceInfo &GetTraceInfo(RestrictedTraceID traceID);
157
} // namespace angle
158
159
#endif // ANGLE_RESTRICTED_TRACES_AUTOGEN_H_
160
161