Lines Matching full:shader
938 fprintf(f, "# Vertex Program/Shader %u\n", prog->Id);
947 fprintf(f, "# Fragment Program/Shader %u\n", prog->Id);
950 fprintf(f, "# Geometry Shader\n");
1095 * Write shader and associated info to a file.
1098 _mesa_write_shader_to_file(const struct gl_shader *shader)
1104 if (shader->Type == GL_FRAGMENT_SHADER)
1106 else if (shader->Type == GL_VERTEX_SHADER)
1111 _mesa_snprintf(filename, sizeof(filename), "shader_%u.%s", shader->Name, type);
1118 fprintf(f, "/* Shader %u source, checksum %u */\n", shader->Name, shader->SourceChecksum);
1119 fputs(shader->Source, f);
1123 shader->CompileStatus ? "ok" : "fail");
1125 if (shader->InfoLog) {
1126 fputs(shader->InfoLog, f);
1128 if (shader->CompileStatus && shader->Program) {
1131 _mesa_fprint_program_opt(f, shader->Program, PROG_PRINT_DEBUG, GL_TRUE);
1135 _mesa_fprint_parameter_list(f, shader->Program->Parameters);
1144 * Append the shader's uniform info/values to the shader log file.
1149 _mesa_append_uniforms_to_file(const struct gl_shader *shader)
1151 shader->Program;
1156 if (shader->Type == GL_FRAGMENT_SHADER)
1161 _mesa_snprintf(filename, sizeof(filename), "shader_%u.%s", shader->Name, type);