Instance Method

initWithDevice:histogramInfo:

Initializes a histogram with specific information.

Declaration

- (instancetype)initWithDevice:(id<MTLDevice>)device histogramInfo:(const MPSImageHistogramInfo *)histogramInfo;

Parameters

device

The Metal device the filter will run on.

histogramInfo

A pointer to a structure describing the histogram content.

Return Value

An initialized histogram object.

See Also

Methods

- encodeTransformToCommandBuffer:sourceTexture:histogram:histogramOffset:

Encodes the transform function to a command buffer using a compute command encoder. The transform function computes the equalization lookup table.