blob: c0336f584a9e850bab0ad863a434143e3e637b21 (
plain)
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
|
package ApiTrace;
enum RenderTargetType {
NORMAL_RENDER = 0;
HIGHLIGHT_RENDER = 1;
}
enum RequestType {
OPEN_FILE_REQUEST = 1;
RENDER_TARGET_REQUEST = 2;
SHADER_ASSEMBLY_REQUEST = 3;
METRICS_REQUEST = 4;
REPLACE_SHADERS_REQUEST = 5;
API_REQUEST = 6;
};
message OpenFileRequest {
required string fileName = 1;
required uint32 frameNumber = 2;
};
message OpenFileStatus {
required bool finished = 1;
required uint32 percent_complete = 2;
}
message MetricsList {
repeated uint64 metric_ids = 1;
repeated string metric_names = 2;
}
message RenderTargetRequest {
required uint32 renderId = 1;
required RenderTargetType type = 2;
// options is a mask of:
// STOP_AT_RENDER = 0x1,
// CLEAR_BEFORE_RENDER = 0x2,
required uint32 options = 3;
}
message RenderTargetResponse {
required bytes image = 1;
}
message ShaderAssemblyRequest {
required uint32 renderId = 1;
}
message MetricsRequest {
repeated uint64 metric_ids = 1;
required uint32 experiment_count = 2;
}
message ShaderAssemblyResponse {
required string vertex_shader = 1;
required string vertex_ir = 2;
required string vertex_vec4 = 3;
required string fragment_shader = 4;
required string fragment_ir = 5;
required string fragment_simd8 = 6;
required string fragment_simd16 = 7;
required string fragment_ssa = 8;
required string fragment_nir = 9;
required string tess_control_shader = 10;
required string tess_eval_shader = 11;
required string vertex_nir = 12;
required string vertex_ssa = 13;
}
message MetricSeries {
required uint64 metric_id = 1;
repeated float data = 2;
}
message MetricsResponse {
repeated MetricSeries metric_data = 1;
required uint32 experiment_count = 2;
}
message ReplaceShadersRequest {
required uint32 render_id = 1;
required uint32 experiment_count = 2;
required string vs = 3;
required string fs = 4;
}
message ReplaceShadersResponse {
required uint32 render_id = 1;
required uint32 experiment_count = 2;
required bool status = 3;
required string message = 4;
}
message ApiRequest {
required uint32 render_id = 1;
}
message ApiResponse {
required uint32 render_id = 1;
repeated string apis = 2;
}
message RetraceRequest {
required RequestType requestType = 1;
optional RenderTargetRequest renderTarget = 2;
optional ShaderAssemblyRequest shaderAssembly = 3;
optional OpenFileRequest fileOpen = 4;
optional MetricsRequest metrics = 5;
optional ReplaceShadersRequest shaders = 6;
optional ApiResponse api = 7;
}
message RetraceResponse {
optional RenderTargetResponse renderTarget = 1;
optional ShaderAssemblyResponse shaderAssembly = 2;
optional OpenFileStatus fileStatus = 3;
optional MetricsList metricsList = 4;
optional MetricsResponse metricsData = 5;
optional ReplaceShadersResponse shadersData = 6;
optional ApiResponse api = 7;
}
|