summaryrefslogtreecommitdiff
path: root/tests/language-feature/modules/import-in-include/c.slang
blob: 5ff5e7ed6662266dab31ab3194033cdcf6b85fa2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//TEST(compute):COMPARE_COMPUTE(filecheck-buffer=CHECK): -shaderobj -output-using-type
//TEST(compute):COMPARE_COMPUTE(filecheck-buffer=CHECK): -vk -shaderobj -output-using-type

// Test that a module imported from an __include'd file can be used from other files
// in the same module, and that entry points and global parameters defined in an
// included file can be correctly discovered by the reflection API.

module c;

__include b; // uses helper module.
__include a; // imports helper module.

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