We are developing Metal shaders that make extensive use of function_constant. However, when testing on 10.11 we are getting the following warnings and errors:
<program source>:34:32: warning: unknown attribute 'function_constant' ignored
constant bool normal_defined [[function_constant(0)]];
<program source>:34:15: error: variable in constant address space must be initialized
constant bool normal_defined [[function_constant(0)]];
Looking at the feature set documentation (https://developer.apple.com/metal/Metal-Feature-Set-Tables.pdf) it seems to show (at least to how I'm interpeting it) that function contants are supported everywhere, but looking at the page for MTLFunctionConstant (https://developer.apple.com/documentation/metal/mtlfunctionconstant?language=objc) shows 10.12+.
Is there any way to tell what features are supported in each OS version without looking at each individual page of documentation?