Skip to content

Commit 7f41e9c

Browse files
Skip DXCompilerTest.RemapBindingsPS_2 test when DXC version is 1.3 or below
1 parent 12a00a2 commit 7f41e9c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Tests/DiligentCoreAPITest/src/DXCompilerTest.cpp

+8
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,14 @@ float4 main(in float4 f4Position : SV_Position) : SV_TARGET
527527
MaxSM = ShaderVersion{6, 6};
528528
}
529529

530+
// NOTE: need to call this after GetMaxShaderModel() to load the compiler
531+
Version DXCVersion;
532+
pDXC->GetVersion(DXCVersion.Major, DXCVersion.Minor);
533+
if (DXCVersion <= Version{1, 3})
534+
{
535+
GTEST_SKIP() << "DXC version 1.3 or older does not support ConstantBuffer<...> syntax";
536+
}
537+
530538
for (Uint32 MinorVersion = 0; MinorVersion <= MaxSM.Minor; ++MinorVersion)
531539
{
532540
std::wstring Profile = L"ps_6_" + std::to_wstring(MinorVersion);

0 commit comments

Comments
 (0)