Module Metal.Function

Represents a single, named function (shader or kernel) within a Metal library. See MTLFunction.

type t
val sexp_of_t : t -> Sexplib0.Sexp.t
val set_label : t -> string -> unit
val get_label : t -> string
val get_device : t -> Device.t
val get_function_type : t -> FunctionType.t
val get_name : t -> string

Gets the name of the function as defined in the source code.

val get_options : t -> Unsigned.ULLong.t

Gets the options the function was created with (MTLFunctionOptions).