vitasdk
Documentation of the vitasdk
razor_hud.h
Go to the documentation of this file.
1
6#ifndef _PSP2_RAZOR_HUD_H_
7#define _PSP2_RAZOR_HUD_H_
8
10#include <psp2/types.h>
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
24
31
44
48 SceSize overflow_count; //|< Number of results elements not included in the results buffer due to buffer overflow
50 uint64_t start_time;
51 uint64_t end_time;
52 uint32_t metric_group;
56
63
68
75
83
90
95
100
104
115
129
139
149
157int sceRazorGpuLiveSetMetricsGroup(uint32_t metrics);
158
169
176
183
184#ifdef __cplusplus
185}
186#endif
187
188#endif /* _PSP2_RAZOR_HUD_H_ */
#define VITASDK_BUILD_ASSERT_EQ(__size__, __name__)
Definition build_utils.h:13
void * buffer
Definition bt.h:6
uint32_t duration
Duration of the frame in microseconds.
Definition razor_hud.h:143
uint32_t vdm_primitives_input_num
VDM input primitives number.
Definition razor_hud.h:77
SceRazorGpuLiveEntryJobFragmentValues1 fragment_values_type1
Values for a job of SCE_RAZOR_LIVE_TRACE_METRIC_JOB_TYPE_FRAGMENT1 type.
Definition razor_hud.h:107
uint64_t start_time
Start time of the results collection in microseconds.
Definition razor_hud.h:50
uint32_t tiling_accelerated_mem_writes
Amount of tiling accelerated memory writes in bytes.
Definition razor_hud.h:92
uint64_t start_time
Start time of the entry in microseconds.
Definition razor_hud.h:142
int sceRazorGpuLiveStop()
Stops gpu live debugging.
uint16_t entry_size
Entry size in bytes.
Definition razor_hud.h:58
int sceRazorGpuLiveStart()
Starts gpu live debugging.
SceSize overflow_count
Definition razor_hud.h:48
uint32_t rasterized_pixels_before_hsr_num
Number of rasterized pixels before Hidden Surface Removal.
Definition razor_hud.h:85
uint16_t reserved
Reserved data.
Definition razor_hud.h:136
float usse_vertex_processing_percent
USSE vertex processing percentage.
Definition razor_hud.h:65
uint32_t metric_group
Metrics group used for the results.
Definition razor_hud.h:52
uint64_t peak_usage_timestamp
Time of param buffer peak usage in microseconds.
Definition razor_hud.h:132
uint32_t frame_number
Frame number in which the job got executed.
Definition razor_hud.h:123
SceRazorGpuLiveEntryJobFragmentValues2 fragment_values_type2
Values for a job of SCE_RAZOR_LIVE_TRACE_METRIC_JOB_TYPE_FRAGMENT2 type.
Definition razor_hud.h:109
SceRazorGpuLiveEntryJobVertexValues1 vertex_values_type1
Values for a job of SCE_RAZOR_LIVE_TRACE_METRIC_JOB_TYPE_VERTEX1 type.
Definition razor_hud.h:106
uint32_t rasterized_output_pixels_num
Number of rasterized pixels.
Definition razor_hud.h:86
uint32_t mte_vertices_output_num
MTE output vertices number.
Definition razor_hud.h:80
uint64_t end_time
End time of the entry in microseconds.
Definition razor_hud.h:119
int8_t core
Core number on which the job got executed.
Definition razor_hud.h:121
SceSize buffer_size
Size of the results buffer in bytes.
Definition razor_hud.h:49
int unk
Unknown data.
Definition razor_hud.h:126
uint32_t mte_primitives_output_num
MTE output primitives number.
Definition razor_hud.h:78
uint16_t scene_index
Index of the scene in which the job got executed.
Definition razor_hud.h:122
SceRazorGpuLiveEntryJobVertexValues2 vertex_values_type2
Values for a job of SCE_RAZOR_LIVE_TRACE_METRIC_JOB_TYPE_VERTEX2 type.
Definition razor_hud.h:108
SceRazorLiveTraceMetricJobType
Enumeration for the gpu live results job types.
Definition razor_hud.h:33
float usse_fragment_processing_percent
USSE fragment processing percentage.
Definition razor_hud.h:70
float usse_non_dependent_texture_reads_percent
USSE non-dependant texture reads requests percentage.
Definition razor_hud.h:72
int reserved
Reserved data.
Definition razor_hud.h:60
float usse_dependent_texture_reads_percent
USSE dependant texture reads requests percentage.
Definition razor_hud.h:71
uint32_t rasterized_output_samples_num
Number of rasterized samples.
Definition razor_hud.h:87
SceRazorGpuLiveEntryJobVertexValues3 vertex_values_type3
Values for a job of SCE_RAZOR_LIVE_TRACE_METRIC_JOB_TYPE_VERTEX3 type.
Definition razor_hud.h:110
void * result_data
Pointer to the raw data results entries.
Definition razor_hud.h:46
uint32_t peak_usage_value
Memory peak usage of the param buffer in bytes.
Definition razor_hud.h:133
SceRazorLiveTraceMetricEntryType
Enumeration for the gpu live results entry types.
Definition razor_hud.h:26
uint32_t isp_parameter_fetches_mem_reads
Amount of ISP parameter fetches memory reads in bytes.
Definition razor_hud.h:97
uint64_t start_time
Start time of the entry in microseconds.
Definition razor_hud.h:118
uint8_t type
The type of the job (One of SceRazorLiveTraceMetricJobType)
Definition razor_hud.h:120
int reserved[8]
Reserved data.
Definition razor_hud.h:102
int reserved
Reserved data.
Definition razor_hud.h:53
SceRazorGpuLiveEntryJobFragmentValues3 fragment_values_type3
Values for a job of SCE_RAZOR_LIVE_TRACE_METRIC_JOB_TYPE_FRAGMENT3 type.
Definition razor_hud.h:111
int reserved
Reserved data.
Definition razor_hud.h:146
uint32_t gpu_activity_duration_time
Duration of GPU activity for the frame in microseconds.
Definition razor_hud.h:145
SceRazorGpuLiveEntryHeader header
Distinguishing header for the entry.
Definition razor_hud.h:141
uint32_t process_id
ID of the process which executed the job.
Definition razor_hud.h:125
int sceRazorGpuLiveSetMetricsGroup(uint32_t metrics)
Sets a metrics group to use for gpu live debugging.
SceRazorGpuLiveEntryHeader header
Distinguishing header for the entry.
Definition razor_hud.h:131
SceSize entry_count
Number of elements stored in the results buffer.
Definition razor_hud.h:47
uint8_t vertex_job_paused
Flag indicating wether a vertex job had been paused or not.
Definition razor_hud.h:135
SceRazorGpuLiveMetricsGroup
Enumeration for the gpu live metrics groups.
Definition razor_hud.h:17
uint32_t frame_number
Number of the frame.
Definition razor_hud.h:144
uint8_t partial_render
Flag indicating wether a partial render occurred or not.
Definition razor_hud.h:134
SceRazorGpuLiveEntryJobGeneric generic_values_type
Definition razor_hud.h:112
int sceRazorGpuLiveSetBuffer(void *buffer, SceSize buf_size, SceRazorGpuLiveResultInfo *results)
Sets the buffer in which to store gpu live debugging results for the current frame.
uint64_t end_time
End time of the results collection in microseconds.
Definition razor_hud.h:51
SceRazorGpuLiveEntryHeader header
Distinguishing header for the entry.
Definition razor_hud.h:117
SceRazorGpuLiveEntryJobValues job_values
Reported values by the job.
Definition razor_hud.h:124
uint32_t vdm_vertices_input_num
VDM input vertices number.
Definition razor_hud.h:79
uint16_t entry_type
Entry type (One of SceRazorLiveTraceMetricEntryType)
Definition razor_hud.h:59
@ SCE_RAZOR_LIVE_TRACE_METRIC_JOB_TYPE_FRAGMENT2
Definition razor_hud.h:38
@ SCE_RAZOR_LIVE_TRACE_METRIC_JOB_TYPE_VERTEX1
Definition razor_hud.h:35
@ SCE_RAZOR_LIVE_TRACE_METRIC_JOB_TYPE_FRAGMENT0
Definition razor_hud.h:42
@ SCE_RAZOR_LIVE_TRACE_METRIC_JOB_TYPE_FIRMWARE
Definition razor_hud.h:34
@ SCE_RAZOR_LIVE_TRACE_METRIC_JOB_TYPE_FRAGMENT1
Definition razor_hud.h:36
@ SCE_RAZOR_LIVE_TRACE_METRIC_JOB_TYPE_VERTEX2
Definition razor_hud.h:37
@ SCE_RAZOR_LIVE_TRACE_METRIC_JOB_TYPE_VERTEX0
Definition razor_hud.h:41
@ SCE_RAZOR_LIVE_TRACE_METRIC_JOB_TYPE_VERTEX3
Definition razor_hud.h:39
@ SCE_RAZOR_LIVE_TRACE_METRIC_JOB_TYPE_FRAGMENT3
Definition razor_hud.h:40
@ SCE_RAZOR_LIVE_TRACE_METRIC_ENTRY_TYPE_FRAME
Definition razor_hud.h:29
@ SCE_RAZOR_LIVE_TRACE_METRIC_ENTRY_TYPE_PARAMETER_BUFFER
Definition razor_hud.h:28
@ SCE_RAZOR_LIVE_TRACE_METRIC_ENTRY_TYPE_JOB
Definition razor_hud.h:27
@ SCE_RAZOR_GPU_LIVE_METRICS_GROUP_OVERVIEW_1
Definition razor_hud.h:19
@ SCE_RAZOR_GPU_LIVE_METRICS_GROUP_NUM
Definition razor_hud.h:22
@ SCE_RAZOR_GPU_LIVE_METRICS_GROUP_PBUFFER_USAGE
Definition razor_hud.h:18
@ SCE_RAZOR_GPU_LIVE_METRICS_GROUP_OVERVIEW_2
Definition razor_hud.h:20
@ SCE_RAZOR_GPU_LIVE_METRICS_GROUP_OVERVIEW_3
Definition razor_hud.h:21
Definition razor_hud.h:140
Definition razor_hud.h:57
Definition razor_hud.h:116
Definition razor_hud.h:101
Definition razor_hud.h:64
Definition razor_hud.h:76
Definition razor_hud.h:91
Definition razor_hud.h:130
Definition razor_hud.h:45
Definition razor_hud.h:105
unsigned int SceSize
Definition types.h:56