ImFusion C++ SDK 4.4.0
ImFusion::ClSort Class Reference

#include <ImFusion/CL/ClSort.h>

OpenCL-based sorting. More...

Detailed Description

OpenCL-based sorting.

Public Member Functions

 ClSort (ClEnvironment &env, Image::Type dataType=Image::FLOAT)
bool setDataType (Image::Type dataType)
 Set data type. Recompiles kernels if data type has changed.
bool sort (ClImage &dataIn, ClImage &dataOut)
 Sort contents of data. Data has to be a 1D buffer of floats. If data type is different from current one, kernels are recompiled.

Protected Attributes

ClEnvironmentm_env
std::unique_ptr< ClProgramm_program
std::vector< std::unique_ptr< ClKernel > > m_kernelSort
Image::Type m_dataType = Image::FLOAT

The documentation for this class was generated from the following file:
  • ImFusion/CL/ClSort.h
Search Tab / S to search, Esc to close