Lines Matching defs:main
48 * - Each shader executable must define a \c main function.
91 #include "main/shaderobj.h"
92 #include "main/enums.h"
93 #include "main/mtypes.h"
524 * writes to gl_ClipVertex, and main() writes to gl_ClipDistance).
865 * will eventually get pulled into the shaders 'main'.
2272 * directly used in a shader with the main function.
2283 /* Skip shader object with main function */
2284 if (shader_list[i]->symbols->get_function("main"))
2383 /* Find the shader that defines main, and make a clone of it.
2390 gl_shader *main = NULL;
2393 main = shader_list[i];
2398 if (main == NULL && allow_missing_main)
2399 main = shader_list[0];
2401 if (main == NULL) {
2402 linker_error(prog, "%s shader lacks `main'\n",
2425 clone_ir_list(mem_ctx, linked->ir, main->ir);
2442 /* The pointer to the main function in the final linked shader (i.e., the
2443 * copy of the original shader that contained the main function).
2449 * declarations into main.
2457 if (shader_list[i] == main)