summaryrefslogtreecommitdiffstats
path: root/tests/preprocessor/line-macro.slang
blob: 2b035357acdd08babd5c64b34c77e332a9e24b24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//TEST:COMPARE_COMPUTE(filecheck-buffer=CHECK): -output-using-type

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

#define T(x) x
#define LL T(__LINE__)

[numthreads(1, 1, 1)]
void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID)
{
    // CHECK: 13
    outputBuffer[0] = LL;
}