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-test.slang
// library-entry-point-test.slang

//DISABLED_TEST:COMPILE: -module-name module -no-codegen -profile cs_5_0 -entry computeMain tests/serialization/library-entry-point/library-entry-point.slang -o tests/serialization/library-entry-point/library-entry-point.slang-lib
//DISABLED_TEST:COMPARE_COMPUTE_EX: -no-default-entry-point -xslang -module-name -xslang module -slang -compute -xslang -r -xslang tests/serialization/library-entry-point/library-entry-point.slang-lib

//TEST_INPUT:ubuffer(data=[0 0 0 0 ], stride=4):out,name outputBuffer

int doSomething(int a)
{
    return a * a + 1;
}

back to top