mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
glsl: Create an accessor for the built-in function shader.
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
parent
5af97b43c9
commit
1b557b1606
2 changed files with 13 additions and 2 deletions
|
|
@ -357,8 +357,6 @@ public:
|
|||
ir_function_signature *find(_mesa_glsl_parse_state *state,
|
||||
const char *name, exec_list *actual_parameters);
|
||||
|
||||
private:
|
||||
void *mem_ctx;
|
||||
/**
|
||||
* A shader to hold all the built-in signatures; created by this module.
|
||||
*
|
||||
|
|
@ -368,6 +366,9 @@ private:
|
|||
*/
|
||||
gl_shader *shader;
|
||||
|
||||
private:
|
||||
void *mem_ctx;
|
||||
|
||||
/** Global variables used by built-in functions. */
|
||||
ir_variable *gl_ModelViewProjectionMatrix;
|
||||
ir_variable *gl_Vertex;
|
||||
|
|
@ -4020,4 +4021,11 @@ _mesa_glsl_find_builtin_function(_mesa_glsl_parse_state *state,
|
|||
{
|
||||
return builtins.find(state, name, actual_parameters);
|
||||
}
|
||||
|
||||
gl_shader *
|
||||
_mesa_glsl_get_builtin_function_shader()
|
||||
{
|
||||
return builtins.shader;
|
||||
}
|
||||
|
||||
/** @} */
|
||||
|
|
|
|||
|
|
@ -2366,6 +2366,9 @@ extern ir_function_signature *
|
|||
_mesa_glsl_find_builtin_function(_mesa_glsl_parse_state *state,
|
||||
const char *name, exec_list *actual_parameters);
|
||||
|
||||
extern gl_shader *
|
||||
_mesa_glsl_get_builtin_function_shader(void);
|
||||
|
||||
extern void
|
||||
_mesa_glsl_release_functions(void);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue