Home | History | Annotate | Download | only in functional

Lines Matching full:shader

148 				m_log << TestLog::Message << "// Shader compiler not supported, always expect GL_INVALID_OPERATION" << TestLog::EndMessage;
150 m_log << TestLog::Message << "// Shader compiler supported" << TestLog::EndMessage;
152 GLuint shader = glCreateShader(GL_VERTEX_SHADER);
157 glGetShaderiv(shader, -1, &param[0]);
161 m_log << TestLog::Section("", "GL_INVALID_VALUE is generated if shader is not a value generated by OpenGL.");
166 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if pname is GL_COMPILE_STATUS, GL_INFO_LOG_LENGTH, or GL_SHADER_SOURCE_LENGTH but a shader compiler is not supported.");
167 glGetShaderiv(shader, GL_COMPILE_STATUS, &param[0]);
169 glGetShaderiv(shader, GL_INFO_LOG_LENGTH, &param[0]);
171 glGetShaderiv(shader, GL_SHADER_SOURCE_LENGTH, &param[0]);
175 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if shader does not refer to a shader object.");
180 glDeleteShader(shader);
185 GLuint shader = glCreateShader(GL_VERTEX_SHADER);
192 m_log << TestLog::Section("", "GL_INVALID_VALUE is generated if shader is not a value generated by OpenGL.");
197 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if shader is not a shader object.");
203 glGetShaderInfoLog(shader, -1, &length[0], &infoLog[0]);
207 glDeleteShader(shader);
215 m_log << TestLog::Message << "// Shader compiler not supported, always expect GL_INVALID_OPERATION" << TestLog::EndMessage;
217 m_log << TestLog::Message << "// Shader compiler supported" << TestLog::EndMessage;
233 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if a shader compiler is not supported.");
243 GLuint shader = glCreateShader(GL_VERTEX_SHADER);
245 m_log << TestLog::Section("", "GL_INVALID_VALUE is generated if shader is not a value generated by OpenGL.");
250 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if shader is not a shader object.");
256 glGetShaderSource(shader, -1, &length[0], &source[0]);
261 glDeleteShader(shader);
269 GLuint shader = glCreateShader(GL_VERTEX_SHADER);
283 glGetProgramiv(shader, GL_LINK_STATUS, &params[0]);
288 glDeleteShader(shader);
293 GLuint shader = glCreateShader(GL_VERTEX_SHADER);
303 glGetProgramInfoLog (shader, 1, &length[0], &infoLog[0]);
313 glDeleteShader(shader);
316 // Enumerated state queries: Shader variables
354 GLuint shader = glCreateShader(GL_VERTEX_SHADER);
366 glGetUniformfv (shader, vUnif, &params[0]);
380 glDeleteShader(shader);
393 GLuint shader = glCreateShader(GL_VERTEX_SHADER);
405 glGetUniformiv (shader, vUnif, &params[0]);
419 glDeleteShader(shader);
698 GLuint shader = 0;
701 m_log << TestLog::Section("", "A name created with glCreateShader, and not yet deleted with glDeleteShader is a name of a shader object.");
702 isShader = glIsProgram(shader);
705 shader = glCreateShader(GL_VERTEX_SHADER);
706 isShader = glIsShader(shader);
709 glDeleteShader (shader);
710 isShader = glIsShader(shader);