yum-mirror/slang

Making it easier to work with shaders

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

Yong HeCheck mismatching method parameter direction against interface declaration. (#5964)cc1b96d91

master
396 B24 linesraw
1//TEST:SIMPLE(filecheck=CHECK): -target spirv
2
3//CHECK: OpEntryPoint
4
5public interface ITest {
6    public property int val;
7};
8
9public struct TestImpl : ITest {
10    public int val;
11}
12
13public struct Test : ITest = TestImpl;
14
15StructuredBuffer<Test> data;
16RWStructuredBuffer<int> output;
17
18[shader("compute")]
19[numthreads(1,1,1)]
20void computeMain()
21{
22    int val = data[0].val;
23    output[0] = val;
24}