Skip to content

Commit 94ec5c6

Browse files
committed
review: update-naming
1 parent 57d1667 commit 94ec5c6

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

clang/unittests/Parse/ParseHLSLRootSignatureTest.cpp

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -371,24 +371,25 @@ TEST_F(ParseHLSLRootSignatureTest, ValidParseRootDescriptorsTest) {
371371
ASSERT_EQ(std::get<RootDescriptor>(Elem).Type, DescriptorType::CBuffer);
372372
ASSERT_EQ(std::get<RootDescriptor>(Elem).Reg.ViewType, RegisterType::BReg);
373373
ASSERT_EQ(std::get<RootDescriptor>(Elem).Reg.Number, 0u);
374-
ASSERT_EQ(std::get<RootParam>(Elem).Space, 0u);
375-
ASSERT_EQ(std::get<RootParam>(Elem).Visibility, ShaderVisibility::All);
374+
ASSERT_EQ(std::get<RootDescriptor>(Elem).Space, 0u);
375+
ASSERT_EQ(std::get<RootDescriptor>(Elem).Visibility, ShaderVisibility::All);
376376

377377
Elem = Elements[1];
378378
ASSERT_TRUE(std::holds_alternative<RootDescriptor>(Elem));
379379
ASSERT_EQ(std::get<RootDescriptor>(Elem).Type, DescriptorType::SRV);
380380
ASSERT_EQ(std::get<RootDescriptor>(Elem).Reg.ViewType, RegisterType::TReg);
381381
ASSERT_EQ(std::get<RootDescriptor>(Elem).Reg.Number, 42u);
382-
ASSERT_EQ(std::get<RootParam>(Elem).Space, 4u);
383-
ASSERT_EQ(std::get<RootParam>(Elem).Visibility, ShaderVisibility::Geometry);
382+
ASSERT_EQ(std::get<RootDescriptor>(Elem).Space, 4u);
383+
ASSERT_EQ(std::get<RootDescriptor>(Elem).Visibility,
384+
ShaderVisibility::Geometry);
384385

385386
Elem = Elements[2];
386387
ASSERT_TRUE(std::holds_alternative<RootDescriptor>(Elem));
387388
ASSERT_EQ(std::get<RootDescriptor>(Elem).Type, DescriptorType::UAV);
388389
ASSERT_EQ(std::get<RootDescriptor>(Elem).Reg.ViewType, RegisterType::UReg);
389390
ASSERT_EQ(std::get<RootDescriptor>(Elem).Reg.Number, 34893247u);
390-
ASSERT_EQ(std::get<RootParam>(Elem).Space, 0u);
391-
ASSERT_EQ(std::get<RootParam>(Elem).Visibility, ShaderVisibility::Hull);
391+
ASSERT_EQ(std::get<RootDescriptor>(Elem).Space, 0u);
392+
ASSERT_EQ(std::get<RootDescriptor>(Elem).Visibility, ShaderVisibility::Hull);
392393

393394
ASSERT_TRUE(Consumer->isSatisfied());
394395
}

0 commit comments

Comments
 (0)