summaryrefslogtreecommitdiff
path: root/tests/compute/rewriter-types.slang
blob: a627b789186fde93da61bfc25e223ef91a1b6e37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//TEST_IGNORE_FILE:

struct MyHelper
{
	int val;
	RWStructuredBuffer<int> buf;
};

struct Other
{
	int val;	
};

int test(int inVal, MyHelper helper, Other other)
{
	return inVal + helper.val + helper.buf[inVal] + other.val;
}