Home | History | Annotate | Download | only in functional

Lines Matching full:shader

21  * \brief Negative Shader API tests.
61 : TestCaseGroup(context, "shader", "Negative Shader API Cases")
83 m_log << TestLog::Message << "// Shader compiler not supported, always expect GL_INVALID_OPERATION" << TestLog::EndMessage;
85 m_log << TestLog::Message << "// Shader compiler supported" << TestLog::EndMessage;
87 m_log << TestLog::Section("", "GL_INVALID_VALUE is generated if shader is not a value generated by OpenGL.");
93 GLuint shader = glCreateShader(GL_VERTEX_SHADER);
94 glShaderSource(shader, -1, 0, 0);
98 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if shader is not a shader object.");
105 glDeleteShader(shader);
112 m_log << TestLog::Message << "// Shader compiler not supported, always expect GL_INVALID_OPERATION" << TestLog::EndMessage;
114 m_log << TestLog::Message << "// Shader compiler supported" << TestLog::EndMessage;
116 m_log << TestLog::Section("", "GL_INVALID_VALUE is generated if shader is not a value generated by OpenGL.");
121 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if shader is not a shader object.");
131 m_log << TestLog::Section("", "GL_INVALID_VALUE is generated if shader is not a value generated by OpenGL.");
142 m_log << TestLog::Message << "// Shader binaries not supported." << TestLog::EndMessage;
144 m_log << TestLog::Message << "// Shader binaries supported" << TestLog::EndMessage;
173 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if any value in shaders is not a shader object.");
178 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if there is more than one vertex shader object handle or more than one fragment shader object handle in shaders.");
203 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if shader is not a shader object.");
210 m_log << TestLog::Section("", "GL_INVALID_VALUE is generated if either program or shader is not a value generated by OpenGL.");
219 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if shader is already attached to program, or if another shader object of the same type as shader is already attached to program.");
234 GLuint shader = glCreateShader(GL_VERTEX_SHADER);
237 m_log << TestLog::Section("", "GL_INVALID_VALUE is generated if either program or shader is not a value generated by OpenGL.");
238 glDetachShader(-1, shader);
247 glDetachShader(shader, shader);
251 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if shader is not a shader object.");
254 glDetachShader(shader, program);
258 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if shader is not attached to program.");
259 glDetachShader(program, shader);
264 glDeleteShader(shader);
268 GLuint shader = glCreateShader(GL_VERTEX_SHADER);
276 glLinkProgram(shader);
280 glDeleteShader(shader);
284 GLuint shader = glCreateShader(GL_VERTEX_SHADER);
292 glUseProgram(shader);
297 glDeleteShader(shader);
308 GLuint shader = glCreateShader(GL_VERTEX_SHADER);
318 glGetActiveAttrib(shader, 0, 0, 0, 0, 0, 0);
333 glDeleteShader(shader);
338 GLuint shader = glCreateShader(GL_VERTEX_SHADER);
347 m_log << TestLog::Section("", "GL_INVALID_VALUE is generated if program is not a program or shader object.");
358 glGetAttribLocation(shader, "test");
363 glDeleteShader(shader);
369 GLuint shader = glCreateShader(GL_VERTEX_SHADER);
384 glGetAttribLocation(shader, "test");
390 glDeleteShader(shader);
396 GLuint shader = glCreateShader(GL_VERTEX_SHADER);
414 glBindAttribLocation(shader, maxIndex-1, "test");
419 glDeleteShader(shader);
423 GLuint shader = glCreateShader(GL_VERTEX_SHADER);
432 glGetActiveUniform(shader, 0, 0, 0, 0, 0, 0);
448 glDeleteShader(shader);
452 GLuint shader = glCreateShader(GL_VERTEX_SHADER);
460 glValidateProgram(shader);
464 glDeleteShader(shader);
472 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if a shader compiler is not supported.");
508 m_log << tcu::TestLog::Section("", "GL_INVALID_OPERATION is generated if the size of the uniform variable declared in the shader does not match the size indicated by the glUniform command.");
598 m_log << tcu::TestLog::Section("", "GL_INVALID_OPERATION is generated if the size of the uniform variable declared in the shader does not match the size indicated by the glUniform command.");
714 m_log << tcu::TestLog::Section("", "GL_INVALID_OPERATION is generated if the size of the uniform variable declared in the shader does not match the size indicated by the glUniform command.");
798 shader does not match the size indicated by the glUniform command.");
911 m_log << tcu::TestLog::Section("", "GL_INVALID_OPERATION is generated if the size of the uniform variable declared in the shader does not match the size indicated by the glUniform command.");