Instance Property

required

A Boolean value indicating whether the function constant must be provided to specialize the function.

Declaration

@property(readonly) BOOL required;

Discussion

This value is YES if a constant value must be provided for the function constant. A function constant is optional only if it is referenced in a call to the built-in is_function_constant_defined(name) function.

Refer to the Metal Shading Language Guide for more information.

See Also

Reading the Function Constant's Properties

name

The name of the function constant.

type

The data type of the function constant.

index

The index of the function constant.