- Add CommandList tests: Clear (color/depth/stencil), SetIndexBuffer, Draw (VAO), SetViewport, SetScissor - Add RTV tests: Initialize (Texture2D), Bind/Unbind - Add DSV tests: Bind/Unbind - Simplify tests to work with available GL context
19 lines
445 B
C++
19 lines
445 B
C++
#include "fixtures/OpenGLTestFixture.h"
|
|
#include "XCEngine/RHI/OpenGL/OpenGLDepthStencilView.h"
|
|
|
|
using namespace XCEngine::RHI;
|
|
|
|
TEST_F(OpenGLTestFixture, DepthStencilView_Bind_Unbind) {
|
|
OpenGLDepthStencilView dsv;
|
|
dsv.Initialize(0);
|
|
|
|
dsv.Bind();
|
|
GLint boundFBO = 0;
|
|
glGetIntegerv(GL_FRAMEBUFFER_BINDING, &boundFBO);
|
|
|
|
dsv.Unbind();
|
|
glGetIntegerv(GL_FRAMEBUFFER_BINDING, &boundFBO);
|
|
|
|
dsv.Shutdown();
|
|
}
|