Lines Matching defs:shader
102 * to minimize total amount of allocated memory during shader-db run.
106 /* Remove any line continuation characters in the shader, (whether in
110 remove_line_continuations(glcpp_parser_t *ctx, const char *shader)
121 backslash = strchr(shader, '\\');
123 /* No line continuations were found in this shader, our job is done */
125 return (char *) shader;
127 search_start = shader;
129 /* Determine what flavor of newlines this shader is using. GLSL
138 * This code explicitly supports a shader that uses a mixture of
185 _mesa_string_buffer_append_len(sb, shader,
186 newline - shader + 1);
193 shader = skip_newline (newline);
194 search_start = shader;
205 * advance the shader pointer to the character after the
211 _mesa_string_buffer_append_len(sb, shader, backslash - shader);
212 shader = skip_newline (backslash + 1);
213 search_start = shader;
219 _mesa_string_buffer_append(sb, shader);
225 glcpp_preprocess(void *ralloc_ctx, const char **shader, char **info_log,
234 *shader = remove_line_continuations(parser, *shader);
236 glcpp_lex_set_source_string (parser, *shader);
251 *shader = parser->output->buf;