Inviwo 0.9.12-pre
Inviwo documentation
|
Utility class for computing min and max values using OpenGL. More...
#include <dataminmaxgl.h>
Public Member Functions | |
DataMinMaxGL (const DataMinMaxGL &)=delete | |
DataMinMaxGL (DataMinMaxGL &&) noexcept=default | |
DataMinMaxGL & | operator= (const DataMinMaxGL &)=delete |
DataMinMaxGL & | operator= (DataMinMaxGL &&) noexcept=default |
std::pair< dvec4, dvec4 > | minMax (const Volume &volume) |
std::pair< dvec4, dvec4 > | minMax (const VolumeGL &volumeGL) |
std::pair< dvec4, dvec4 > | minMax (const Layer &layer) |
std::pair< dvec4, dvec4 > | minMax (const LayerGL &layerGL) |
std::pair< dvec4, dvec4 > | minMax (const BufferBase &buffer) |
std::pair< dvec4, dvec4 > | minMax (const BufferGL &bufferGL) |
Static Public Member Functions | |
static bool | isSuppportedByGPU () |
Utility class for computing min and max values using OpenGL.
This class uses compute shaders to compute min and max values of Buffers, Layers, and Volumes. If compute shaders are not available, the corresponding CPU functions from modules/base/algorithm/dataminmax.h are used instead.
The GPU needs to support the following OpenGL extensions:
GL_KHR_shader_subgroup
GL_NV_gpu_shader5
GL_EXT_shader_explicit_arithmetic_types
|
static |
Check whether the GPU supports compute shaders and the necessary OpenGL extensions.
GL_KHR_shader_subgroup
GL_NV_gpu_shader5
GL_EXT_shader_explicit_arithmetic_types