summaryrefslogtreecommitdiff
path: root/tests/reflection/arrays.hlsl
blob: 8880aaebd334e3adb5c5d636ae8165d93533b079 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
//TEST:SIMPLE:-profile ps_4_0 -target reflection-json

// Confirm that we can generate reflection info for arrays
//
// Note: just working with fixed-size arrays for now.
// Unbounded arrays may require more work.

cbuffer MyConstantBuffer
{
	float x;

	float a[10];

	float y;
}

Texture2D tx;
Texture2D ta[16];
Texture2D ty;
SamplerState sx;
SamplerState sa[4];
SamplerState sy;

float4 main() : SV_Target
{
	return 0.0;
}