Files
XCEngine/tests/RHI/OpenGL/test_depth_stencil_view.cpp
ssdfasd 4b14831c57 Add Phase 4: CommandList, RTV, DSV tests (13 tests)
- 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
2026-03-17 12:40:07 +08:00

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();
}