X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=metrics.h;h=4beda7f5e41b1eddfb959b29b9a0a2583bf0b73b;hb=158a5862aeea9224fcd60c28b0bb19cb6b9f9381;hp=45fef33cabc93ae38d788be3950459d29970bede;hpb=7980e4108be1dff9b074aa91b97c8d787df41d83;p=fips diff --git a/metrics.h b/metrics.h index 45fef33..4beda7f 100644 --- a/metrics.h +++ b/metrics.h @@ -50,6 +50,23 @@ typedef enum METRICS_OP_SHADER } metrics_op_t; +/* Initialize metrics info + * + * This queries the names and ranges for all available performance counters. + * + * This should be called once before any other metrics functions. + */ +void +metrics_info_init (void); + +/* Finalize metrics info state. + * + * The function should be called just before setting a new, current, + * OpenGL context. + */ +void +metrics_info_fini (void); + /* Start accumulating GPU time. * * The time accumulated will be accounted against the