Skip to content

Commit a577b7a

Browse files
author
Greg Roth
authored
Check for Resource Binding Tier 3 before running DynamicResources test (#3552)
merges #3545 into release-1.6-2104 (cherry picked from commit 7e1a660) Authored-by: Justin Holewinski <[email protected]>
1 parent 58dcf33 commit a577b7a

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

tools/clang/unittests/HLSL/ExecutionTest.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8316,6 +8316,15 @@ TEST_F(ExecutionTest, DynamicResourcesTest) {
83168316
if (!CreateDevice(&pDevice, D3D_SHADER_MODEL_6_6))
83178317
return;
83188318

8319+
// ResourceDescriptorHeap/SamplerDescriptorHeap requires Resource Binding Tier 3
8320+
D3D12_FEATURE_DATA_D3D12_OPTIONS devOptions;
8321+
VERIFY_SUCCEEDED(pDevice->CheckFeatureSupport((D3D12_FEATURE)D3D12_FEATURE_D3D12_OPTIONS, &devOptions, sizeof(devOptions)));
8322+
if (devOptions.ResourceBindingTier < D3D12_RESOURCE_BINDING_TIER_3) {
8323+
WEX::Logging::Log::Comment(L"Device does not support Resource Binding Tier 3");
8324+
WEX::Logging::Log::Result(WEX::Logging::TestResults::Skipped);
8325+
return;
8326+
}
8327+
83198328
RunResourceTest(pDevice, pShader, L"cs_6_6", /*isDynamic*/true);
83208329
}
83218330

0 commit comments

Comments
 (0)