Skip to content

Commit 1844c67

Browse files
committed
enable testing for vulkan
1 parent d5cbc6d commit 1844c67

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/DiligentCoreAPITest/src/InlineConstantsTest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ class InlineConstants : public ::testing::Test
129129
GPUTestingEnvironment* pEnv = GPUTestingEnvironment::GetInstance();
130130
IRenderDevice* pDevice = pEnv->GetDevice();
131131

132-
if (!pDevice->GetDeviceInfo().IsD3DDevice())
132+
if (!pDevice->GetDeviceInfo().IsD3DDevice() && !pDevice->GetDeviceInfo().IsVulkanDevice())
133133
{
134134
GTEST_SKIP();
135135
}
@@ -744,7 +744,7 @@ TEST_F(InlineConstants, RenderStateCache)
744744

745745
bool PresentInCache = pData != nullptr;
746746
#if !DILIGENT_DEBUG
747-
if (pDevice->GetDeviceInfo().IsD3DDevice())
747+
if (pDevice->GetDeviceInfo().IsD3DDevice() || pDevice->GetDeviceInfo().IsVulkanDevice())
748748
{
749749
// For some reason, hash computation consistency depends on D3DCOMPILE_DEBUG flag and differs between debug and release builds
750750
PresentInCache = true;

0 commit comments

Comments
 (0)