Enable basic tests for D3D12

This commit is contained in:
Austin Eng 2017-06-30 10:30:57 -04:00 committed by Austin Eng
parent 47261d4ecb
commit 4502441604
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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)