mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 10:30:08 +01:00
Initial integration, still needs the init functions to be changed across the codebase. For the context usage https://github.com/mikesart/gpuvis/pull/82 is needed to display it correctly in gpuvis. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22505>
35 lines
No EOL
440 B
C
35 lines
No EOL
440 B
C
/*
|
|
* Copyright 2023 Bas Nieuwenhuizen
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
|
|
#ifndef U_GPUVIS_H
|
|
#define U_GPUVIS_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#ifdef HAVE_GPUVIS
|
|
|
|
void util_gpuvis_init(void);
|
|
|
|
void util_gpuvis_begin(const char *name);
|
|
|
|
/* ctx needs to be the return value from begin*/
|
|
void util_gpuvis_end(void);
|
|
|
|
#else
|
|
|
|
static inline void
|
|
util_gpuvis_init(void)
|
|
{
|
|
}
|
|
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* U_GPUVIS_H */ |