summaryrefslogtreecommitdiffstats
path: root/tests/bugs/missing-import-attribution.slang
blob: 8b5568660e68cbd238d3c38aee60d0596747c341 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK): -target hlsl -entry computeMain -stage compute

import this_file_does_not_exist;

import empty;


//TEST_INPUT:ubuffer(data=[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], stride=16):out
RWStructuredBuffer<int> outputBuffer;

// CHECK-NOT: error 1: {{.*}} 'empty.slang'

[numthreads(4, 4, 1)]
void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID)
{
    int index = dispatchThreadID.x;
    outputBuffer[index] = index;
}