Contents

MTLComputePipelineReflection

Information about the arguments of a compute function.

Declaration

class MTLComputePipelineReflection

Overview

An MTLComputePipelineReflection object provides access to the arguments of the compute function used in an MTLComputePipelineState object. An MTLComputePipelineReflection object can be created along with an MTLComputePipelineState object. Don’t create an MTLComputePipelineReflection object directly. Instead, call either the makeComputePipelineState(function:options:reflection:) or makeComputePipelineState(function:options:completionHandler:) method of MTLDevice to create both an MTLComputePipelineState object and an MTLComputePipelineReflection object.

MTLComputePipelineReflection objects can use a significant amount of memory; release any strong references to them after you finish creating pipeline objects.

Topics

Obtaining the arguments of the compute function

Instance Properties

See Also

Introspection data