yum-mirror/slang

Making it easier to work with shaders

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

Yong HeSupport visibility control and default to `internal`. (#3380)11111e573

master
247 B17 linesraw
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}