Contents

failOnBinaryArchiveMiss

An option that instructs the compiler to return an error when a GPU function isn’t in a binary archive.

Declaration

static var failOnBinaryArchiveMiss: MTLFunctionOptions { get }

Discussion

By default, Metal compiles a function if it isn’t in a binary archive. When you set this option, Metal returns an error instead of compiling a missing function.

Setting this option is a way to verify that binary archives contain all the functions your app needs, or to measure a binary archive’s hit rates.

See Also

Function compilation options