Home | History | Annotate | Download | only in texture_cube_map_array

Lines Matching defs:Shader

139 	struct Shader
144 } shader[] = { { s_vertex_shader, GL_VERTEX_SHADER, 0 }, { s_fragment_shader, GL_FRAGMENT_SHADER, 0 } };
147 glw::GLuint const shader_count = sizeof(shader) / sizeof(shader[0]);
153 /* Shader compilation. */
156 if (DE_NULL != shader[i].source)
158 shader[i].id = gl.createShader(shader[i].type);
162 gl.attachShader(m_program, shader[i].id);
169 shaderSource += shader[i].source;
172 gl.shaderSource(shader[i].id, 1, &source, NULL);
176 gl.compileShader(shader[i].id);
182 gl.getShaderiv(shader[i].id, GL_COMPILE_STATUS, &status);
188 gl.getShaderiv(shader[i].id, GL_INFO_LOG_LENGTH, &log_size);
193 gl.getShaderInfoLog(shader[i].id, log_size, NULL, &log_text[0]);
195 m_context.getTestContext().getLog() << tcu::TestLog::Message << "Shader compilation error, log:\n"
197 << "Shader source code:\n"
234 if (shader[i].id)
236 gl.detachShader(m_program, shader[i].id);
268 if (0 != shader[i].id)
270 gl.deleteShader(shader[i].id);
271 shader[i].id = 0;
396 /* Vertex shader source code. */
420 /* Fragment shader source program. */