mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/D3D12MemoryAllocator.git
synced 2024-11-24 21:10:11 +00:00
Fix compilation of Tests.cpp for platforms where ID3D12Device8 is not defined
This commit is contained in:
parent
79c20314a5
commit
bd4c39f8ac
@ -1515,6 +1515,7 @@ static void TestDevice4(const TestContext& ctx)
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef __ID3D12Device8_INTERFACE_DEFINED__
|
||||
static void TestDevice8(const TestContext& ctx)
|
||||
{
|
||||
wprintf(L"Test ID3D12Device8\n");
|
||||
@ -1549,6 +1550,7 @@ static void TestDevice8(const TestContext& ctx)
|
||||
&allocPtr1, IID_PPV_ARGS(&res1)));
|
||||
CHECK_BOOL(allocPtr1->GetHeap()!= NULL);
|
||||
}
|
||||
#endif // #ifdef __ID3D12Device8_INTERFACE_DEFINED__
|
||||
|
||||
static void TestGroupVirtual(const TestContext& ctx)
|
||||
{
|
||||
@ -1573,7 +1575,9 @@ static void TestGroupBasics(const TestContext& ctx)
|
||||
TestZeroInitialized(ctx);
|
||||
TestMultithreading(ctx);
|
||||
TestDevice4(ctx);
|
||||
#ifdef __ID3D12Device8_INTERFACE_DEFINED__
|
||||
TestDevice8(ctx);
|
||||
#endif
|
||||
}
|
||||
|
||||
void Test(const TestContext& ctx)
|
||||
|
Loading…
Reference in New Issue
Block a user