CustusX
16.5.0-rc9
An IGT application
|
Repository for GPU buffers. More...
#include <cxGPUImageBuffer.h>
Public Member Functions | |
GPUImageDataBufferPtr | getGPUImageDataBuffer (vtkImageDataPtr volume) |
GPUImageLutBufferPtr | getGPUImageLutBuffer (vtkUnsignedCharArrayPtr lut) |
int | getMemoryUsage (int *textures) |
void | clear () |
Static Public Member Functions | |
static GPUImageBufferRepository * | getInstance () |
static void | shutdown () |
Repository for GPU buffers.
Use this repository for avoiding multiple allocations of buffer data. *
Definition at line 133 of file cxGPUImageBuffer.h.
void cx::GPUImageBufferRepository::clear | ( | ) |
Free all resources in the repository, for instance on session change
Definition at line 555 of file cxGPUImageBuffer.cpp.
GPUImageDataBufferPtr cx::GPUImageBufferRepository::getGPUImageDataBuffer | ( | vtkImageDataPtr | volume | ) |
Definition at line 591 of file cxGPUImageBuffer.cpp.
GPUImageLutBufferPtr cx::GPUImageBufferRepository::getGPUImageLutBuffer | ( | vtkUnsignedCharArrayPtr | lut | ) |
Definition at line 596 of file cxGPUImageBuffer.cpp.
|
static |
Definition at line 561 of file cxGPUImageBuffer.cpp.
int cx::GPUImageBufferRepository::getMemoryUsage | ( | int * | textures | ) |
Definition at line 586 of file cxGPUImageBuffer.cpp.
|
static |
Definition at line 570 of file cxGPUImageBuffer.cpp.