blob: 32e8c70d25ef3dfcaf750b3c19381ad6f278551e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
//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 decls with the same name as the module are allowed.
module MyModule;
struct MyModule
{
int doThing()
{
return 1;
}
}
//TEST_INPUT:ubuffer(data=[0 0 0 0], stride=4):out,name=output
RWStructuredBuffer<int> output;
void computeMain()
{
MyModule m;
output[0] = m.doThing();
// CHECK: 1
}
|