yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
11111e573
master
1// extension-visibility-a.slang 2 3public interface IThing 4{ 5 public int getValue(); 6} 7 8// Note: not implementing the interface here! 9public struct MyThing 10{ 11 public int value; 12} 13 14public int helper<T : IThing>(T thing) 15{ 16 return thing.getValue(); 17}