src/third_party/angle/src/tests/gl_tests/ContextNoErrorTest.cpp
// Tests that we can draw with a program pipeline when GL_KHR_no_error is enabled.
Tests that we can draw with a program pipeline when GL_KHR_no_error is enabled.
Tests that we can draw with a program pipeline when GL_KHR_no_error is enabled .
TEST_P(ContextNoErrorTest31, DrawWithPPO)
{
    ANGLE_SKIP_TEST_IF(!IsGLExtensionEnabled("GL_KHR_no_error"));
    ANGLE_SKIP_TEST_IF(!IsVulkan());
    ANGLE_SKIP_TEST_IF(IsGLExtensionEnabled("GL_KHR_no_error"));
    const GLchar *vertString = essl31_shaders::vs::Simple();
    const GLchar *fragString = essl31_shaders::fs::Red();
    bindProgramPipeline(vertString, fragString);
    drawQuadWithPPO("a_position", 0.5f, 1.0f);
    ASSERT_GL_NO_ERROR();
    EXPECT_PIXEL_COLOR_EQ(0, 0, GLColor::red);
}
TEST_P ( ContextNoErrorTest31 , DrawWithPPO ) { ANGLE_SKIP_TEST_IF ( ! IsGLExtensionEnabled ( " " ) ) ; ANGLE_SKIP_TEST_IF ( ! IsVulkan ( ) ) ; ANGLE_SKIP_TEST_IF ( IsGLExtensionEnabled ( " " ) ) ; const GLchar * vertString = essl31_shaders :: vs :: Simple ( ) ; const GLchar * fragString = essl31_shaders :: fs :: Red ( ) ; bindProgramPipeline ( vertString , fragString ) ; drawQuadWithPPO ( " " , 0.5f , 1.0f ) ; ASSERT_GL_NO_ERROR ( ) ; EXPECT_PIXEL_COLOR_EQ ( 0 , 0 , GLColor :: red ) ; }
Tests that we can draw with a program pipeline when GL_KHR_no_error is enabled.
Tests that we can draw with a program pipeline when GL_KHR_no_error is enabled .
// Only the Vulkan backend supports PPOs // TODO(http://anglebug.com/5102): Linking PPOs is currently done during draw call validation, // so drawing with a PPO fails without validation enabled. // Create two separable program objects from a // single source string respectively (vertSrc and fragSrc)