Encodes the filter to a command buffer using a compute command encoder.
- iOS 9.0+
- macOS 10.13+
- Mac Catalyst 13.0+
- tvOS 9.0+
- Metal Performance Shaders
A valid command buffer.
A valid texture containing the source image for the filter.
A valid buffer to receive the histogram results.
The byte offset into the histogram buffer at which to write the histogram results. Must be a multiple of 32 bytes. The histogram results per channel are stored together. The number of channels for which histogram results are stored is determined by the number of channels in the image. If the
histogramvalue of the
NOand the source image is RGBA, then only histogram results for RGB channels are stored.
The filter will not begin to execute until after the command buffer has been enqueued and committed.