MTL4PipelineDataSetSerializer
A fast-addition container for collecting data during pipeline state creation.
Declaration
protocol MTL4PipelineDataSetSerializer : NSObjectProtocolMentioned in
Overview
Pipeline data serializer instances allow you to create binary archives and serialize pipeline scripts to use with the offline Metal binary generator (metal-tt) doc:compiling-binary-archives-from-a-custom-configuration-script.md.
You capture and retain all relevant data for all pipelines a compiler instance creates by providing an instance of this object to its MTL4CompilerDescriptor.
After capturing data, you can serialize it to a binary archive to persist its contents offline by calling serializeAsArchiveAndFlush(url:). You can also serialize a pipeline script suitable for the offline binary generator (metal-tt) by calling serializeAsPipelinesScript()