mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/D3D12MemoryAllocator.git
synced 2024-11-21 11:50:03 +00:00
Fixed tests: Added query for D3D12_FEATURE_PROTECTED_RESOURCE_SESSION_SUPPORT
Closes #12
This commit is contained in:
parent
e37363c0f1
commit
4dedc35e8f
@ -1475,10 +1475,24 @@ static void TestMultithreading(const TestContext& ctx)
|
||||
}
|
||||
}
|
||||
|
||||
static bool IsProtectedResourceSessionSupported(const TestContext& ctx)
|
||||
{
|
||||
D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_SUPPORT support = {};
|
||||
CHECK_HR(ctx.device->CheckFeatureSupport(
|
||||
D3D12_FEATURE_PROTECTED_RESOURCE_SESSION_SUPPORT, &support, sizeof support));
|
||||
return support.Support > D3D12_PROTECTED_RESOURCE_SESSION_SUPPORT_FLAG_NONE;
|
||||
}
|
||||
|
||||
static void TestDevice4(const TestContext& ctx)
|
||||
{
|
||||
wprintf(L"Test ID3D12Device4\n");
|
||||
|
||||
if(!IsProtectedResourceSessionSupported(ctx))
|
||||
{
|
||||
wprintf(L"D3D12_FEATURE_PROTECTED_RESOURCE_SESSION_SUPPORT returned no support for protected resource session.\n");
|
||||
return;
|
||||
}
|
||||
|
||||
CComPtr<ID3D12Device4> dev4;
|
||||
HRESULT hr = ctx.device->QueryInterface(&dev4);
|
||||
if(FAILED(hr))
|
||||
|
Loading…
Reference in New Issue
Block a user