Home | History | Annotate | Download | only in gl

Lines Matching defs:Shader

606 	struct Shader
611 } shader[] = { { s_vertex_shader, GL_VERTEX_SHADER, 0 }, { s_fragment_shader, GL_FRAGMENT_SHADER, 0 } };
613 glw::GLuint const shader_count = sizeof(shader) / sizeof(shader[0]);
621 /* Shader compilation. */
625 if (DE_NULL != shader[i].source)
627 shader[i].id = gl.createShader(shader[i].type);
631 gl.attachShader(m_po, shader[i].id);
635 gl.shaderSource(shader[i].id, 1, &(shader[i].source), NULL);
639 gl.compileShader(shader[i].id);
645 gl.getShaderiv(shader[i].id, GL_COMPILE_STATUS, &status);
651 gl.getShaderiv(shader[i].id, GL_INFO_LOG_LENGTH, &log_size);
656 gl.getShaderInfoLog(shader[i].id, log_size, NULL, &log_text[0]);
658 m_context.getTestContext().getLog() << tcu::TestLog::Message << "Shader compilation has failed.\n"
659 << "Shader type: " << glu::getShaderTypeStr(shader[i].type)
661 << "Shader compilation error log:\n"
663 << "Shader source code:\n"
664 << shader[i].source << "\n"
689 if (shader[i].id)
691 gl.detachShader(m_po, shader[i].id);
732 if (0 != shader[i].id)
734 gl.deleteShader(shader[i].id);
736 shader[i].id = 0;
776 /* Setup fragment shader's sampler. */
914 /* Vertex shader source code. */
936 /* Fragment shader source program. */