Skip to content

Commit 23881d1

Browse files
committed
Added a test to see if keep all resources works. TODO: It seems like this pc has a bit of trouble to get the tests to run, switching to my other pc first to verify
1 parent 7401388 commit 23881d1

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// RUN: %dxc -T lib_6_3 -auto-binding-space 11 -default-linkage external -keep-all-resources %s | %D3DReflect %s | FileCheck %s
2+
3+
struct Foo
4+
{
5+
float4 a;
6+
uint b;
7+
};
8+
9+
RWStructuredBuffer<Foo> g_buffer[2] : register(u0);
10+
11+
uint Dummy() {
12+
return 0;
13+
}
14+
15+
// CHECK: ID3D12LibraryReflection:
16+
// CHECK: D3D12_LIBRARY_DESC:
17+
// CHECK: FunctionCount: 1
18+
// CHECK: ID3D12FunctionReflection:
19+
// CHECK: D3D12_FUNCTION_DESC: Name: \01?Dummy{{[@$?.A-Za-z0-9_]+}}
20+
// CHECK: Shader Version: Library 6.3
21+
// CHECK: BoundResources: 1
22+
// CHECK: Bound Resources:
23+
// CHECK: D3D12_SHADER_INPUT_BIND_DESC: Name: g_buffer
24+
// CHECK: Type: D3D_SIT_UAV_RWSTRUCTURED
25+
// CHECK: uID: 0
26+
// CHECK: BindCount: 2
27+
// CHECK: BindPoint: 0
28+
// CHECK: ReturnType: D3D_RETURN_TYPE_MIXED
29+
// CHECK: Dimension: D3D_SRV_DIMENSION_BUFFER
30+
// CHECK: NumSamples (or stride): 20

0 commit comments

Comments
 (0)