mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 20:28:04 +02:00
mesa: add struct for managing client debug namespaces
The final piece of the puzzle for GL_ARB_debug_output.
This commit is contained in:
parent
f6f3093940
commit
41308d9699
1 changed files with 8 additions and 2 deletions
|
|
@ -3221,11 +3221,17 @@ typedef enum {
|
|||
OTHER_ERROR_COUNT
|
||||
} gl_other_error;
|
||||
|
||||
struct gl_client_namespace
|
||||
{
|
||||
struct _mesa_HashTable *IDs;
|
||||
unsigned ZeroID; /* a HashTable won't take zero, so store its state here */
|
||||
struct simple_node Severity[3]; /* lists of IDs in the hash table */
|
||||
};
|
||||
|
||||
struct gl_client_debug
|
||||
{
|
||||
GLboolean Defaults[3][2][6]; /* severity, source, type */
|
||||
/* TODO: Add an object here that can track the state of an arbitrary
|
||||
number of client-provided IDs. */
|
||||
struct gl_client_namespace Namespaces[2][6]; /* source, type */
|
||||
};
|
||||
|
||||
struct gl_debug_state
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue