MetalPerformanceShaders Functions

No overview available.

Topics

Functions

MPSFindIntegerDivisionParams

Returns the integer division parameters for a specified divisor.

MPSGetCustomKernelBatchedDestinationIndex

Returns the index of the first destination texture argument.

MPSGetCustomKernelBatchedSourceIndex

Returns the index of the specified batched source texture argument.

MPSGetCustomKernelBroadcastSourceIndex

Returns the index of the specified nonbatched source texture argument.

MPSGetCustomKernelMaxBatchSize

Returns the maximum allowed batch size.

MPSHintTemporaryMemoryHighWaterMark

Triggers Metal Performance Shaders to prefetch a Metal heap of the indicated size into its internal cache.

MPSImageBatchIncrementReadCount

Increments or decrements the read count of an image batch by a specified amount.

MPSImageBatchIterate

Executes a callback block once for each unique image in a batch.

MPSImageBatchResourceSize

Returns the number of bytes used to allocate the specified image batch.

MPSImageBatchSynchronize

Removes any copy of the specified image batch from the device's caches, and, if needed, invalidates any CPU caches.

MPSSetHeapCacheDuration

Sets the timeout after which unused cached Metal heaps are released.

MPSStateBatchIncrementReadCount

Increments or decrements the read count of a state batch by a specified amount.

MPSStateBatchResourceSize

Returns the number of bytes used to allocate the specified state batch.

MPSStateBatchSynchronize

Removes any copy of the specified state batch from the device's caches, and, if needed, invalidates any CPU caches.