mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-06 21:25:58 +00:00
Enable basic tests for D3D12
This commit is contained in:
parent
47261d4ecb
commit
4502441604
@ -278,6 +278,8 @@ namespace detail {
|
|||||||
bool IsBackendAvailable(BackendType type) {
|
bool IsBackendAvailable(BackendType type) {
|
||||||
#if defined(__APPLE__)
|
#if defined(__APPLE__)
|
||||||
return type == MetalBackend;
|
return type == MetalBackend;
|
||||||
|
#elif defined(_WIN32)
|
||||||
|
return type == D3D12Backend;
|
||||||
#else
|
#else
|
||||||
return false;
|
return false;
|
||||||
#endif
|
#endif
|
||||||
|
@ -56,4 +56,4 @@ TEST_P(BasicTests, ReadPixelsTest) {
|
|||||||
EXPECT_PIXEL_RGBA8_EQ(red, texture, 0, 0);
|
EXPECT_PIXEL_RGBA8_EQ(red, texture, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
NXT_INSTANTIATE_TEST(BasicTests, MetalBackend)
|
NXT_INSTANTIATE_TEST(BasicTests, MetalBackend, D3D12Backend)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user