summaryrefslogtreecommitdiffstats
path: root/tests/serialization/library-entry-point/library-entry-point.slang
blob: 657b140acde0247e99e431ddcea3bbef82318b20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//TEST_IGNORE_FILE:

// libray-entry-point.slang
// Testing for the scenarion when an entry point is declared in a library

[__extern] int doSomething(int a);

RWStructuredBuffer<int> outputBuffer;

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