From 4502441604b087f232918b41647b6d0a547e9274 Mon Sep 17 00:00:00 2001 From: Austin Eng Date: Fri, 30 Jun 2017 10:30:57 -0400 Subject: [PATCH] Enable basic tests for D3D12 --- src/tests/NXTTest.cpp | 2 ++ src/tests/end2end/BasicTests.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/tests/NXTTest.cpp b/src/tests/NXTTest.cpp index b709958aa8..fca648d9d0 100644 --- a/src/tests/NXTTest.cpp +++ b/src/tests/NXTTest.cpp @@ -278,6 +278,8 @@ namespace detail { bool IsBackendAvailable(BackendType type) { #if defined(__APPLE__) return type == MetalBackend; + #elif defined(_WIN32) + return type == D3D12Backend; #else return false; #endif diff --git a/src/tests/end2end/BasicTests.cpp b/src/tests/end2end/BasicTests.cpp index 38c18d7ef7..f34fe63f0a 100644 --- a/src/tests/end2end/BasicTests.cpp +++ b/src/tests/end2end/BasicTests.cpp @@ -56,4 +56,4 @@ TEST_P(BasicTests, ReadPixelsTest) { EXPECT_PIXEL_RGBA8_EQ(red, texture, 0, 0); } -NXT_INSTANTIATE_TEST(BasicTests, MetalBackend) +NXT_INSTANTIATE_TEST(BasicTests, MetalBackend, D3D12Backend)