Declaration

Overview

Use a MTLCompileOptions object to specify how a new Metal shader library should be compiled. If you want to set the following options, use standard allocation and initialization techniques to create a MTLCompileOptions object and then set any or all of these properties:

To allow the compiler to perform optimizations for floating-point arithmetic that may violate the IEEE 754 standard, set fastMathEnabled to YES.

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.