https://github.com/shader-slang/slang
Raw File
Tip revision: b00e2dc8e777a481f79c5c4fea4d1d0481fc445e authored by jsmall-nvidia on 16 July 2021, 12:59:50 UTC
Upgrade glslang to 11.5.0 (#1910)
Tip revision: b00e2dc
library-entry-point.slang
//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);
}

back to top