Home | History | Annotate | Download | only in glcpp

Lines Matching full:shader

75 in_directive(const char *shader, const char *ptr)
77 assert(ptr >= shader);
80 for (; ptr >= shader && *ptr != '#'; ptr--) {
84 if (ptr >= shader) {
86 for (ptr--; ptr >= shader && isblank(*ptr); ptr--);
88 if (ptr < shader || *ptr == '\n')
99 remove_line_continuations(glcpp_parser_t *ctx, const char *shader)
104 const char *search_start = shader;
110 int n = newline - shader;
126 if (in_directive(shader, backslash)) {
133 ralloc_strncat(&clean, shader, backslash - shader);
134 shader = newline + 1;
139 ralloc_strncat(&clean, shader, newline - shader + 1);
140 shader = newline + 1;
148 ralloc_strcat(&clean, shader);
153 glcpp_preprocess(void *ralloc_ctx, const char **shader, char **info_log,
158 *shader = remove_line_continuations(parser, *shader);
160 glcpp_lex_set_source_string (parser, *shader);
170 *shader = parser->output;