Metal.LibraryRepresents a compiled Metal library containing one or more functions. See MTLLibrary.
val sexp_of_t : t -> Sexplib0.Sexp.tval set_label : t -> string -> unitval get_label : t -> stringval on_device : Device.t -> source:string -> CompileOptions.t -> tCreates a library by compiling Metal Shading Language source code. See newLibraryWithSource:options:error:.
Creates a library from pre-compiled data (e.g., a .metallib file loaded into memory). Defensively, the returned value holds on to the data pointer. See newLibraryWithData:error:.
val new_function_with_name : t -> string -> Function.tRetrieves a specific function from the library by name. See newFunctionWithName:.
val get_function_names : t -> string arrayval get_library_type : t -> CompileOptions.LibraryType.tGets the type of the library (Executable or Dynamic).
val get_install_name : t -> string optionGets the install name if it's a dynamic library.