yum-mirror/slang

Making it easier to work with shaders

git clone https://git.yummers.dev/yum-mirror/slang

jsmall-nvidiaTesting having a library with an entry point works. (#1141)0b4c1f632

master
376 B16 linesraw
1//TEST_IGNORE_FILE:
2
3// libray-entry-point.slang
4// Testing for the scenarion when an entry point is declared in a library
5
6[__extern] int doSomething(int a);
7
8RWStructuredBuffer<int> outputBuffer;
9
10[numthreads(4, 1, 1)]
11void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID)
12{
13    int index = int(dispatchThreadID.x);
14    outputBuffer[index] = doSomething(index);
15}
16