Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e6331bd

Browse filesBrowse files
committed
fix analysis unit test for cbuffer
1 parent 4250363 commit e6331bd
Copy full SHA for e6331bd

File tree

Expand file treeCollapse file tree

1 file changed

+5
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-3
lines changed

‎llvm/unittests/Analysis/DXILResourceTest.cpp

Copy file name to clipboardExpand all lines: llvm/unittests/Analysis/DXILResourceTest.cpp
+5-3Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -367,10 +367,12 @@ TEST(DXILResource, AnnotationsAndMetadata) {
367367

368368
// cbuffer cb0 { float4 g_X; float4 g_Y; }
369369
{
370-
StructType *CBufType0 =
370+
StructType *CBufStruct =
371371
StructType::create(Context, {Floatx4Ty, Floatx4Ty}, "cb0");
372-
ResourceTypeInfo RTI(llvm::TargetExtType::get(Context, "dx.CBuffer",
373-
CBufType0, {/*Size=*/32}));
372+
TargetExtType *CBufLayoutType =
373+
llvm::TargetExtType::get(Context, "dx.Layout", CBufStruct, {32, 0, 16});
374+
ResourceTypeInfo RTI(
375+
llvm::TargetExtType::get(Context, "dx.CBuffer", CBufLayoutType));
374376
EXPECT_EQ(RTI.getResourceClass(), ResourceClass::CBuffer);
375377
EXPECT_EQ(RTI.getCBufferSize(DL), 32u);
376378
EXPECT_EQ(RTI.getResourceKind(), ResourceKind::CBuffer);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.