Skip to content

Commit 589668e

Browse files
author
joaosaffran
committed
adding more test
1 parent e8f7b94 commit 589668e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

llvm/unittests/Frontend/HLSLRootSignatureDumpTest.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,8 @@ TEST(HLSLRootSignatureTest, DefaultStaticSamplerDump) {
266266
"minLOD = 0.000000e+00, "
267267
"maxLOD = 3.402823e+38, "
268268
"space = 0, "
269-
"visibility = All"
269+
"visibility = All, "
270+
"flags = 0x0"
270271
")";
271272
EXPECT_EQ(Out, Expected);
272273
}
@@ -287,6 +288,7 @@ TEST(HLSLRootSignatureTest, DefinedStaticSamplerDump) {
287288
Sampler.MaxLOD = 32.0f;
288289
Sampler.Space = 7;
289290
Sampler.Visibility = llvm::dxbc::ShaderVisibility::Domain;
291+
Sampler.Flags = llvm::dxbc::StaticSamplerFlags::NonNormalizedCoordinates;
290292

291293
std::string Out;
292294
llvm::raw_string_ostream OS(Out);
@@ -305,7 +307,8 @@ TEST(HLSLRootSignatureTest, DefinedStaticSamplerDump) {
305307
"minLOD = 1.000000e+00, "
306308
"maxLOD = 3.200000e+01, "
307309
"space = 7, "
308-
"visibility = Domain"
310+
"visibility = Domain, "
311+
"flags = 0x2"
309312
")";
310313
EXPECT_EQ(Out, Expected);
311314
}

0 commit comments

Comments
 (0)