enum piglit_result
piglit_display(void)
{
	bool pass = true;
	GLuint ids[10];

	/* Throw some invalid inputs at glCreateTransformFeedbacks. */

	/* n is negative */
	glCreateTransformFeedbacks(-1, ids);
	SUBTEST(GL_INVALID_VALUE, pass, "n < 0");

	/* Throw some valid inputs at glCreateTransformFeedbacks. */

	/* n is zero */
	glCreateTransformFeedbacks(0, NULL);
	SUBTEST(GL_NO_ERROR, pass, "n == 0");

	/* n is more than 1 */
	glCreateTransformFeedbacks(10, ids);
	SUBTEST(GL_NO_ERROR, pass, "n > 1");

	SUBTESTCONDITION(glIsTransformFeedback(ids[2]), pass,
			"IsTransformFeedback()");

	/* the default state is tested in the following piglit test:
	 *	arb_direct_state_access-gettransformfeedback
	 */

	return pass ? PIGLIT_PASS : PIGLIT_FAIL;
}
Exemplo n.º 2
0
void TransformFeedback::createImplementationDSA() {
    glCreateTransformFeedbacks(1, &_id);
    _created = true;
}
Exemplo n.º 3
0
 static void createObjects(GLsizei n, GLuint* objects) {
     glCreateTransformFeedbacks(n, objects);
 }