test: add vulkan renderer scene coverage

This commit is contained in:
2026-04-02 04:00:58 +08:00
parent 4c167bec0e
commit 7404108a4b
21 changed files with 258 additions and 14 deletions

View File

@@ -178,7 +178,7 @@ void RHIIntegrationFixture::SetUp() {
}
void RHIIntegrationFixture::BeginRender() {
if (GetParam() == RHIType::Vulkan) {
if (GetParam() == RHIType::Vulkan && RequiresSwapChainAcquire()) {
#if defined(XCENGINE_SUPPORT_VULKAN)
auto* vulkanSwapChain = static_cast<VulkanSwapChain*>(mSwapChain);
ASSERT_NE(vulkanSwapChain, nullptr);