mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 17:30:12 +01:00
mesa: add driver interface for writing query results to buffers
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
3efcd4df01
commit
7c3f4b2fd8
1 changed files with 9 additions and 0 deletions
|
|
@ -726,6 +726,15 @@ struct dd_function_table {
|
|||
void (*EndQuery)(struct gl_context *ctx, struct gl_query_object *q);
|
||||
void (*CheckQuery)(struct gl_context *ctx, struct gl_query_object *q);
|
||||
void (*WaitQuery)(struct gl_context *ctx, struct gl_query_object *q);
|
||||
/*
|
||||
* \pname the value requested to be written (GL_QUERY_RESULT, etc)
|
||||
* \ptype the type of the value requested to be written:
|
||||
* GL_UNSIGNED_INT, GL_UNSIGNED_INT64_ARB,
|
||||
* GL_INT, GL_INT64_ARB
|
||||
*/
|
||||
void (*StoreQueryResult)(struct gl_context *ctx, struct gl_query_object *q,
|
||||
struct gl_buffer_object *buf, intptr_t offset,
|
||||
GLenum pname, GLenum ptype);
|
||||
/*@}*/
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue