summaryrefslogtreecommitdiffstats
path: root/tests/reflection/mix-explicit-and-implicit-spaces.slang
blob: 22e0163ee1438c6aa010eb5f810c2b029eeec0ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// mix-explicit-and-implicit-spaces.slang
//TEST:REFLECTION:-profile cs_5_1 -target hlsl -no-codegen

// Ensure that correct layout/reflection is computed
// when mixing implicit and explicit spaces for
// parameter blocks.

struct A { float x; }
ParameterBlock<A> a : register(space0);

struct B { float y; }
ParameterBlock<B> b : register(space1);

struct C { float z; }
ParameterBlock<C> c;

void main()
{}