yum-mirror/slang

Making it easier to work with shaders

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

Yong HeHandle import, entrypoint and global params in included files. (#3395)12fcffaaa

master
581 B14 linesraw
1//TEST(compute):COMPARE_COMPUTE(filecheck-buffer=CHECK): -shaderobj -output-using-type
2//TEST(compute):COMPARE_COMPUTE(filecheck-buffer=CHECK): -vk -shaderobj -output-using-type
3
4// Test that a module imported from an __include'd file can be used from other files
5// in the same module, and that entry points and global parameters defined in an
6// included file can be correctly discovered by the reflection API.
7
8module c;
9
10__include b; // uses helper module.
11__include a; // imports helper module.
12
13//TEST_INPUT:ubuffer(data=[0 0 0 0], stride=4):out,name=outputBuffer
14//CHECK: 1