summaryrefslogtreecommitdiffstats
path: root/tests/language-feature/modules/module-name-underscore/underscore.slang
blob: 529611676db9aafe05888cd7cde748c66ef3d91a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//TEST(compute):COMPARE_COMPUTE(filecheck-buffer=CHECK): -shaderobj -output-using-type
//TEST(compute):COMPARE_COMPUTE(filecheck-buffer=CHECK): -vk -shaderobj -output-using-type

import my_module;

//TEST_INPUT:ubuffer(data=[0 0 0 0], stride=4):out,name=output
RWStructuredBuffer<int> output;

void computeMain()
{
    output[0] = f();
    // CHECK: 1
}