Skip to content

Commit 5501e5e

Browse files
committed
review: improve test case to specify values
1 parent e163ede commit 5501e5e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

clang/test/CodeGenHLSL/RootSignature.hlsl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,13 @@ void RootConstantsEntry() {}
5555
// CHECK: ![[#RD_ENTRY]] = !{ptr @RootDescriptorsEntry, ![[#RD_RS:]]}
5656
// CHECK: ![[#RD_RS]] = !{![[#ROOT_CBV:]], ![[#ROOT_UAV:]], ![[#ROOT_SRV:]]}
5757
// CHECK: ![[#ROOT_CBV]] = !{!"RootCBV", i32 0, i32 0, i32 0, i32 4}
58-
// CHECK: ![[#ROOT_UAV]] = !{!"RootUAV", i32 0, i32 0, i32 0, i32 2}
59-
// CHECK: ![[#ROOT_SRV]] = !{!"RootSRV", i32 0, i32 0, i32 0, i32 4}
58+
// CHECK: ![[#ROOT_UAV]] = !{!"RootUAV", i32 0, i32 42, i32 3, i32 2}
59+
// CHECK: ![[#ROOT_SRV]] = !{!"RootSRV", i32 4, i32 0, i32 0, i32 2}
6060

6161
#define SampleRootDescriptors \
6262
"CBV(b0), " \
63-
"UAV(u0), " \
64-
"SRV(t0)"
63+
"UAV(space = 3, u42), " \
64+
"SRV(t0, visibility = Shader_Visibility_Geometry, flags = Data_Volatile)"
6565
[shader("compute"), RootSignature(SampleRootDescriptors)]
6666
[numthreads(1,1,1)]
6767
void RootDescriptorsEntry() {}

0 commit comments

Comments
 (0)