Home | History | Annotate | Download | only in gl

Lines Matching defs:Shader

1700 	struct Shader
1705 } shader[] = { { s_vertex_shader, GL_VERTEX_SHADER, 0 }, { s_fragment_shader, GL_FRAGMENT_SHADER, 0 } };
1707 glw::GLuint const shader_count = sizeof(shader) / sizeof(shader[0]);
1715 /* Shader compilation. */
1719 if (DE_NULL != shader[i].source)
1721 shader[i].id = gl.createShader(shader[i].type);
1725 gl.attachShader(m_po, shader[i].id);
1729 gl.shaderSource(shader[i].id, 1, &(shader[i].source), NULL);
1733 gl.compileShader(shader[i].id);
1739 gl.getShaderiv(shader[i].id, GL_COMPILE_STATUS, &status);
1745 gl.getShaderiv(shader[i].id, GL_INFO_LOG_LENGTH, &log_size);
1750 gl.getShaderInfoLog(shader[i].id, log_size, NULL, &log_text[0]);
1752 m_context.getTestContext().getLog() << tcu::TestLog::Message << "Shader compilation has failed.\n"
1753 << "Shader type: " << glu::getShaderTypeStr(shader[i].type)
1755 << "Shader compilation error log:\n"
1757 << "Shader source code:\n"
1758 << shader[i].source << "\n"
1787 if (shader[i].id)
1789 gl.detachShader(m_po, shader[i].id);
1830 if (0 != shader[i].id)
1832 gl.deleteShader(shader[i].id);
1834 shader[i].id = 0;