yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
11111e573
master
1// struct-generic-value-param-import.slang 2//TEST_IGNORE_FILE: 3 4// This file is used by `struct-generic-value-param.slang`, 5// and also incidentally tests that a trailing `;` is optional 6// for `struct` decalrations in Slang files, including 7// any `import`ed code. 8 9public interface IData {} 10 11public struct Data<let kCount : int> : IData 12{ 13 public int state; 14 15 [mutating] public void doStuff() 16 { 17 state++; 18 } 19}