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
void
metrics_set_current_op (metrics_op_t op);
+/* Return the current metrics_op_t value, (the value most-recently-set
+ * with a call to metrics_set_current_op).
+ */
+metrics_op_t
+metrics_get_current_op (void);
+
/* Should be called at the end of every function wrapper for a
* function that ends a frame, (glXSwapBuffers and similar).
*