Complete OpenGL test suite - 56 tests
Added missing tests to reach planned 56: - CommandList: EnableDisable_DepthTest, EnableDisable_Blending - RTV: GetTexture, GetMipLevel - DSV: Initialize_Texture, GetTexture, GetMipLevel Final count: 56 tests across all 12 components
This commit is contained in:
@@ -104,3 +104,29 @@ TEST_F(OpenGLTestFixture, CommandList_SetScissor) {
|
||||
EXPECT_EQ(scissor[2], 800);
|
||||
EXPECT_EQ(scissor[3], 600);
|
||||
}
|
||||
|
||||
TEST_F(OpenGLTestFixture, CommandList_EnableDisable_DepthTest) {
|
||||
OpenGLCommandList cmdList;
|
||||
|
||||
cmdList.EnableDepthTest(true);
|
||||
GLint depthTest = 0;
|
||||
glGetIntegerv(GL_DEPTH_TEST, &depthTest);
|
||||
EXPECT_EQ(depthTest, 1);
|
||||
|
||||
cmdList.EnableDepthTest(false);
|
||||
glGetIntegerv(GL_DEPTH_TEST, &depthTest);
|
||||
EXPECT_EQ(depthTest, 0);
|
||||
}
|
||||
|
||||
TEST_F(OpenGLTestFixture, CommandList_EnableDisable_Blending) {
|
||||
OpenGLCommandList cmdList;
|
||||
|
||||
cmdList.EnableBlending(true);
|
||||
GLint blend = 0;
|
||||
glGetIntegerv(GL_BLEND, &blend);
|
||||
EXPECT_EQ(blend, 1);
|
||||
|
||||
cmdList.EnableBlending(false);
|
||||
glGetIntegerv(GL_BLEND, &blend);
|
||||
EXPECT_EQ(blend, 0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user