Home | History | Annotate | Download | only in main

Lines Matching defs:source

140  * \param src  the strings source
635 *params = shader->Source ? strlen((char *) shader->Source) + 1 : 0;
672 * Return shader source code.
683 _mesa_copy_string(sourceOut, maxLength, length, sh->Source);
688 * Set/replace shader source code. A helper function used by
692 shader_source(struct gl_context *ctx, GLuint shader, const GLchar *source)
700 /* free old shader source string and install new one */
701 if (sh->Source) {
702 free((void *) sh->Source);
704 sh->Source = source;
707 sh->SourceChecksum = _mesa_str_checksum(sh->Source);
1282 * Read shader source code from a file.
1312 * Basically, concatenate the source code strings into one long string
1322 GLcharARB *source;
1332 * last element will be set to the total length of the source code.
1356 /* Total length of source string is sum off all strings plus two.
1361 source = (GLcharARB *) malloc(totalLength * sizeof(GLcharARB));
1362 if (source == NULL) {
1370 memcpy(source + start, string[i],
1373 source[totalLength - 1] = '\0';
1374 source[totalLength - 2] = '\0';
1377 /* Compute the shader's source code checksum then try to open a file
1379 * original shader source code. For debugging.
1384 checksum = _mesa_str_checksum(source);
1392 free(source);
1393 source = newSource;
1397 shader_source(ctx, shaderObj, source);