blob: 4909537d7f7544eae7d0632469578a7e1df34429 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
//TEST:SIMPLE(filecheck=CHECK):-stage compute -entry computeMain -target spirv
// Tests for invalid use of `globallycoherent` with Ptr/T*
cbuffer Globals
{
// CHECK: ([[# @LINE+1]]): error 30078
globallycoherent Ptr<int> ptr1;
// CHECK: ([[# @LINE+1]]): error 30078
globallycoherent int* ptr2;
// CHECK: ([[# @LINE+1]]): error 30078
coherent Ptr<int> ptr3;
// CHECK: ([[# @LINE+1]]): error 30078
coherent int* ptr4;
}
[numthreads(1, 1, 1)]
void computeMain(int id : SV_DispatchThreadID)
{
}
|