summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/shaderapi.h
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2019-09-02 12:31:17 +1000
committerTimothy Arceri <[email protected]>2019-11-20 05:05:56 +0000
commit1201d3377ef8665797bf00839fd49a76e3e44101 (patch)
tree0ec23d706882ba8f9fcced2bdf4f23675029f203 /src/mesa/main/shaderapi.h
parentdb5197cec54e7926211acef2ff3b40344f01b4f9 (diff)
mesa: add support cursor support for relative path shader includes
This will allow us to continue searching the current path for relative shader includes. From the ARB_shading_language_include spec: "If it is quoted with double quotes in a previously included string, then the first search point will be the tree location where the previously included string had been found." Reviewed-by: Witold Baryluk <[email protected]>
Diffstat (limited to 'src/mesa/main/shaderapi.h')
-rw-r--r--src/mesa/main/shaderapi.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/main/shaderapi.h b/src/mesa/main/shaderapi.h
index 13cde963ff8..66acb6a9694 100644
--- a/src/mesa/main/shaderapi.h
+++ b/src/mesa/main/shaderapi.h
@@ -412,6 +412,12 @@ _mesa_dump_shader_source(const gl_shader_stage stage, const char *source);
void
_mesa_init_shader_includes(struct gl_shared_state *shared);
+size_t
+_mesa_get_shader_include_cursor(struct gl_shared_state *shared);
+
+void
+_mesa_set_shader_include_cursor(struct gl_shared_state *shared, size_t cusor);
+
void
_mesa_destroy_shader_includes(struct gl_shared_state *shared);