summaryrefslogtreecommitdiffstats
path: root/tests/feature/source-map/emit-source-map.slang
blob: 95779c36889b59ff2c368032cf43009ce298579b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//TEST:SIMPLE:-target dxil -entry computeMain -profile cs_6_2 -line-directive-mode source-map -o tests/feature/source-map/emit-source-map.zip

RWStructuredBuffer<int> outputBuffer;

int doThing(int a)
{
    return a + a - 1;
}

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