yum-mirror/slang

Making it easier to work with shaders

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

Tim FoleyInitial work on property declarations (#1410)dc44b08ec

master
251 B20 linesraw
1// properties.slang
2
3// Diagnostic messages related to property/subscript accessor declarations.
4
5//DIAGNOSTIC_TEST:SIMPLE:
6
7struct Test
8{
9	property p : int
10	{
11		get(a) { return 0; }
12
13		set(a, b) { }
14	}
15
16	property q : float
17	{
18		set(c : int) { }
19	}
20}