blob: 98a2a076d08e37234b1b780e2fbc9567a0609227 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
//TEST:SIMPLE(filecheck=CHECK):-stage compute -entry computeMain -target spirv
//CHECK: OpEntryPoint
//CHECK-NOT: error
int* processMemory;
int* output;
[numthreads(1, 1, 1)]
void computeMain(int id : SV_DispatchThreadID)
{
Ptr<int, Access::ReadWrite, AddressSpace::Device> ptr1 = processMemory + id.x + 5;
Ptr<int> ptr2 = processMemory + id.x + 4;
}
|