Lines Matching refs:program

104 	deUint32	program			= 0;
117 program = gl.createProgram();
121 GLU_EXPECT_NO_ERROR(gl.getError(), "Failed to create shaders and program");
159 gl.attachShader(program, vertexShader);
160 gl.attachShader(program, fragmentShader);
161 gl.linkProgram(program);
162 GLU_EXPECT_NO_ERROR(gl.getError(), "Failed to setup program");
167 gl.getProgramiv(program, GL_LINK_STATUS, &linkStatus);
168 gl.getProgramiv(program, GL_INFO_LOG_LENGTH, &infoLogLength);
172 gl.getProgramInfoLog(program, (glw::GLsizei)programInfoLog.length(), &infoLogLength, &(programInfoLog[0]));
173 GLU_EXPECT_NO_ERROR(gl.getError(), "Failed to get program link info");
197 if (program)
198 gl.deleteProgram(program);
209 return program;
229 void render (const glw::Functions& gl, deUint32 program, int targetWidth, int targetHeight, int x, int y, int width, int height)
244 gl.useProgram(program);
245 posLocation = gl.getAttribLocation(program, "a_pos");
248 GLU_EXPECT_NO_ERROR(gl.getError(), "Failed to setup shader program for rendering");
375 deUint32 program = 0;
384 program = createGLES2Program(gl, log);
389 render(gl, program, surfaceSize.x(), surfaceSize.y(), rectX, rectY, rectW, rectH);
405 if (program)
406 gl.deleteProgram(program);
422 deUint32 program = 0;
431 program = createGLES2Program(gl, log);
436 render(gl, program, width, height, rectX, rectY, rectW, rectH);
450 if (program)
451 gl.deleteProgram(program);
466 deUint32 program = 0;
475 program = createGLES2Program(gl, log);
480 render(gl, program, width, height, rectX, rectY, rectW, rectH);
495 if (program)
496 gl.deleteProgram(program);