Hi; Here is a skeleton for the GL_ARB_program_interface_query API functions. Adding the enum values makes it possible to start introducing changes in the current shader query functions using these values.
Plan is to build a resource list during program linking which contains pointers to the required data. First refactor matching existing query functions to use resource list and then introduce new api functionality. Tapani Pälli (2): glapi: add GL_ARB_program_interface_query skeleton docs: update GL3.txt GL_ARB_program_interface_query state docs/GL3.txt | 4 +- src/mapi/glapi/gen/ARB_program_interface_query.xml | 109 +++++++++++++++++++++ src/mapi/glapi/gen/gl_API.xml | 2 + src/mapi/glapi/gen/gl_genexec.py | 1 + src/mesa/Makefile.sources | 2 + src/mesa/main/program_resource.c | 70 +++++++++++++ src/mesa/main/program_resource.h | 59 +++++++++++ 7 files changed, 245 insertions(+), 2 deletions(-) create mode 100644 src/mapi/glapi/gen/ARB_program_interface_query.xml create mode 100644 src/mesa/main/program_resource.c create mode 100644 src/mesa/main/program_resource.h -- 2.1.0 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev