https://github.com/shader-slang/slang
Raw File
Tip revision: 5e1974e8cad3396a8c4bedfd63c1ad31b82ec8eb authored by Yong He on 30 May 2023, 17:41:34 UTC
Fix derivative signature bug in checkDerivativeAttribute. (#2905)
Tip revision: 5e1974e
accessors.slang
// properties.slang

// Diagnostic messages related to property/subscript accessor declarations.

//DIAGNOSTIC_TEST:SIMPLE:

struct Test
{
	property p : int
	{
		get(a) { return 0; }

		set(a, b) { }
	}

	property q : float
	{
		set(c : int) { }
	}
}
back to top