#include <RE_OGLComputeGPU.h>
Public Types | |
| enum | RE_OGLComputeLanguage { OGL_GLSL, OGL_CG } |
Public Member Functions | |
| RE_OGLComputeGPU () | |
| ~RE_OGLComputeGPU () | |
| void | setNumPasses (int passes) |
| void | needBitOps (bool enable) |
| bool | needsBitOps () const |
| void | setConstant (const char *name, RE_GPUType type, int vectorsize, const void *value, int array_size=1, bool global_var=false) |
| void * | setArray (const char *name, RE_GPUType type, int vectorsize, int size, const void *values) |
| void * | setArray2D (const char *name, RE_GPUType type, int vectorsize, int width, int height, const void *values) |
| void * | setArray (const char *name, RE_GPUType type, int vectorsize, int size, const void *values1, const void *values2, const void *values3=NULL, const void *values4=NULL) |
| void * | setArray2D (const char *name, RE_GPUType type, int vectorsize, int width, int height, const void *values1, const void *values2, const void *values3=NULL, const void *values4=NULL) |
| void | setOutputArray (const char *name, RE_GPUType type, int vectorsize, int size, void *dest_data) |
| void | setOutputArray2D (const char *name, RE_GPUType type, int vectorsize, int width, int height, void *dest_data) |
| int | getDataByteSize (RE_GPUType type, int vectorsize, int xsize, int ysize=1) |
| void | setLanguage (RE_OGLComputeLanguage lang) |
| bool | setProgram (const char *name, const char *program, bool auto_generate_framework=true, const char *preamble_code=NULL, const char *function_code=NULL) |
| void | defineSymbol (const char *symbol, const char *value) |
| bool | compute (UT_String &errors, bool async_read=false) |
| bool | getResults () |
| void * | useDeferredFetch () |
Static Public Member Functions | |
| static void | initStandalone () |
| static bool | hasGPUSupport () |
| static bool | areBitOpsSupported () |
| static void | beginDeferredRead (void *key) |
| static bool | endDeferredRead (void *key) |
| static void | cancelDeferredRead (void *key) |
| static bool | useTextureRectangles () |
| static int | getMaxArraySize () |
| static int | getMaxArraySize2D () |
| static void | reset () |
| static void | restoreState () |
| static void | cleanupState () |
Definition at line 68 of file RE_OGLComputeGPU.h.
| RE_OGLComputeGPU::RE_OGLComputeGPU | ( | ) |
| RE_OGLComputeGPU::~RE_OGLComputeGPU | ( | ) |
| static bool RE_OGLComputeGPU::areBitOpsSupported | ( | ) | [static] |
| static void RE_OGLComputeGPU::beginDeferredRead | ( | void * | key | ) | [static] |
| static void RE_OGLComputeGPU::cancelDeferredRead | ( | void * | key | ) | [static] |
| static void RE_OGLComputeGPU::cleanupState | ( | ) | [static] |
| bool RE_OGLComputeGPU::compute | ( | UT_String & | errors, | |
| bool | async_read = false | |||
| ) |
| void RE_OGLComputeGPU::defineSymbol | ( | const char * | symbol, | |
| const char * | value | |||
| ) |
| static bool RE_OGLComputeGPU::endDeferredRead | ( | void * | key | ) | [static] |
| int RE_OGLComputeGPU::getDataByteSize | ( | RE_GPUType | type, | |
| int | vectorsize, | |||
| int | xsize, | |||
| int | ysize = 1 | |||
| ) |
| static int RE_OGLComputeGPU::getMaxArraySize | ( | ) | [static] |
| static int RE_OGLComputeGPU::getMaxArraySize2D | ( | ) | [static] |
| bool RE_OGLComputeGPU::getResults | ( | ) |
| static bool RE_OGLComputeGPU::hasGPUSupport | ( | ) | [static] |
| static void RE_OGLComputeGPU::initStandalone | ( | ) | [static] |
| void RE_OGLComputeGPU::needBitOps | ( | bool | enable | ) |
| bool RE_OGLComputeGPU::needsBitOps | ( | ) | const [inline] |
Definition at line 94 of file RE_OGLComputeGPU.h.
| static void RE_OGLComputeGPU::reset | ( | ) | [static] |
| static void RE_OGLComputeGPU::restoreState | ( | ) | [static] |
| void* RE_OGLComputeGPU::setArray | ( | const char * | name, | |
| RE_GPUType | type, | |||
| int | vectorsize, | |||
| int | size, | |||
| const void * | values1, | |||
| const void * | values2, | |||
| const void * | values3 = NULL, |
|||
| const void * | values4 = NULL | |||
| ) |
| void* RE_OGLComputeGPU::setArray | ( | const char * | name, | |
| RE_GPUType | type, | |||
| int | vectorsize, | |||
| int | size, | |||
| const void * | values | |||
| ) |
| void* RE_OGLComputeGPU::setArray2D | ( | const char * | name, | |
| RE_GPUType | type, | |||
| int | vectorsize, | |||
| int | width, | |||
| int | height, | |||
| const void * | values1, | |||
| const void * | values2, | |||
| const void * | values3 = NULL, |
|||
| const void * | values4 = NULL | |||
| ) |
| void* RE_OGLComputeGPU::setArray2D | ( | const char * | name, | |
| RE_GPUType | type, | |||
| int | vectorsize, | |||
| int | width, | |||
| int | height, | |||
| const void * | values | |||
| ) |
| void RE_OGLComputeGPU::setConstant | ( | const char * | name, | |
| RE_GPUType | type, | |||
| int | vectorsize, | |||
| const void * | value, | |||
| int | array_size = 1, |
|||
| bool | global_var = false | |||
| ) |
| void RE_OGLComputeGPU::setLanguage | ( | RE_OGLComputeLanguage | lang | ) |
| void RE_OGLComputeGPU::setNumPasses | ( | int | passes | ) |
| void RE_OGLComputeGPU::setOutputArray | ( | const char * | name, | |
| RE_GPUType | type, | |||
| int | vectorsize, | |||
| int | size, | |||
| void * | dest_data | |||
| ) |
| void RE_OGLComputeGPU::setOutputArray2D | ( | const char * | name, | |
| RE_GPUType | type, | |||
| int | vectorsize, | |||
| int | width, | |||
| int | height, | |||
| void * | dest_data | |||
| ) |
| bool RE_OGLComputeGPU::setProgram | ( | const char * | name, | |
| const char * | program, | |||
| bool | auto_generate_framework = true, |
|||
| const char * | preamble_code = NULL, |
|||
| const char * | function_code = NULL | |||
| ) |
| void* RE_OGLComputeGPU::useDeferredFetch | ( | ) |
| static bool RE_OGLComputeGPU::useTextureRectangles | ( | ) | [static] |
1.5.9