summaryrefslogtreecommitdiffstats
path: root/tests/reflection/matrix-layout.slang
blob: 0b81d4cdb2136529b53fd6b192d1394603f777da (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
28
//TEST:REFLECTION:-profile ps_4_0 -target hlsl -no-codegen -matrix-layout-column-major
//TEST:REFLECTION:-profile ps_4_0 -target hlsl -no-codegen -matrix-layout-row-major

// Test that we apply matrix layout rules correctly.

cbuffer A
{
					float3x4 aa;
	row_major 		float3x4 ab;
	column_major 	float3x4 ac;
}

struct SB
{
					float3x4 ba;
	row_major 		float3x4 bb;
	column_major 	float3x4 bc;
};

cbuffer B
{
	SB b;
}

float4 main() : SV_Target
{
	return 0.0;
}