blob: 56aa4157d96b3aa51f72e2a087da0ea4a39a3286 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
//TEST:SIMPLE(filecheck=CHECK): -target wgsl -entry Main -stage compute
//TEST:SIMPLE(filecheck=CHECK_IGNORE_CAPS): -target wgsl -entry Main -stage compute -ignore-capabilities
Buffer<float> InputTyped;
RWBuffer<float> OutputTyped;
//CHECK: ([[# @LINE+3]]): error 36107
//CHECK_IGNORE_CAPS-NOT: error 36107
[numthreads(64, 1, 1)]
void Main(uint3 DTid : SV_DispatchThreadID)
{
OutputTyped[DTid.x] = InputTyped[DTid.x];
}
|