HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RE_OGLComputeGPU Class Reference

#include <RE_OGLComputeGPU.h>

+ Inheritance diagram for RE_OGLComputeGPU:

Public Member Functions

 ~RE_OGLComputeGPU () override
 
void setNumPasses (int passes) override
 
void needBitOps (bool enable) override
 
bool needsBitOps () const override
 
void setConstant (const char *name, UT_GPUType type, int vectorsize, const void *value, int array_size=1, bool global_var=false) override
 
voidsetArray (const char *name, UT_GPUType type, int vectorsize, int size, const void *values) override
 
voidsetArray2D (const char *name, UT_GPUType type, int vectorsize, int width, int height, const void *values) override
 
voidsetArray (const char *name, UT_GPUType type, int vectorsize, int size, const void *values1, const void *values2, const void *values3=nullptr, const void *values4=nullptr) override
 
voidsetArray2D (const char *name, UT_GPUType type, int vectorsize, int width, int height, const void *values1, const void *values2, const void *values3=nullptr, const void *values4=nullptr) override
 
void setOutputArray (const char *name, UT_GPUType type, int vectorsize, int size, void *dest_data) override
 
void setOutputArray2D (const char *name, UT_GPUType type, int vectorsize, int width, int height, void *dest_data) override
 
int getDataByteSize (UT_GPUType type, int vectorsize, int xsize, int ysize=1) override
 
void setLanguage (UT_OGLComputeLanguage lang) override
 
bool setProgram (const char *name, const char *program, bool auto_generate_framework=true, const char *preamble_code=nullptr, const char *function_code=nullptr) override
 
void defineSymbol (const char *symbol, const char *value) override
 
bool compute (UT_String &errors, bool async_read=false) override
 
bool getResults () override
 
voiduseDeferredFetch () override
 
- Public Member Functions inherited from UT_ComputeGPU
virtual ~UT_ComputeGPU ()
 

Static Public Member Functions

static void init ()
 Initialize RE GPU implementation. This must be called on startup. More...
 
static void initStandalone (bool one_per_thread)
 
static RE_RendergetRender ()
 
- Static Public Member Functions inherited from UT_ComputeGPU
static UT_ComputeGPUcreate ()
 
static void registerCreateFunc (UT_ComputeGPUCreateFunc create_func)
 Register a function for creating concrete UT_ComputeGPU objects. More...
 

Additional Inherited Members

- Public Types inherited from UT_ComputeGPU
enum  UT_OGLComputeLanguage { OGL_GLSL }
 
- Protected Member Functions inherited from UT_ComputeGPU
 UT_ComputeGPU ()
 

Detailed Description

Definition at line 56 of file RE_OGLComputeGPU.h.

Constructor & Destructor Documentation

RE_OGLComputeGPU::~RE_OGLComputeGPU ( )
override

Member Function Documentation

bool RE_OGLComputeGPU::compute ( UT_String errors,
bool  async_read = false 
)
overridevirtual

Implements UT_ComputeGPU.

void RE_OGLComputeGPU::defineSymbol ( const char *  symbol,
const char *  value 
)
overridevirtual

Implements UT_ComputeGPU.

int RE_OGLComputeGPU::getDataByteSize ( UT_GPUType  type,
int  vectorsize,
int  xsize,
int  ysize = 1 
)
overridevirtual

Implements UT_ComputeGPU.

static RE_Render* RE_OGLComputeGPU::getRender ( )
static
bool RE_OGLComputeGPU::getResults ( )
overridevirtual

Implements UT_ComputeGPU.

static void RE_OGLComputeGPU::init ( )
static

Initialize RE GPU implementation. This must be called on startup.

static void RE_OGLComputeGPU::initStandalone ( bool  one_per_thread)
static
void RE_OGLComputeGPU::needBitOps ( bool  enable)
overridevirtual

Implements UT_ComputeGPU.

bool RE_OGLComputeGPU::needsBitOps ( ) const
inlineoverridevirtual

Implements UT_ComputeGPU.

Definition at line 76 of file RE_OGLComputeGPU.h.

void* RE_OGLComputeGPU::setArray ( const char *  name,
UT_GPUType  type,
int  vectorsize,
int  size,
const void values 
)
overridevirtual

Implements UT_ComputeGPU.

void* RE_OGLComputeGPU::setArray ( const char *  name,
UT_GPUType  type,
int  vectorsize,
int  size,
const void values1,
const void values2,
const void values3 = nullptr,
const void values4 = nullptr 
)
overridevirtual

Implements UT_ComputeGPU.

void* RE_OGLComputeGPU::setArray2D ( const char *  name,
UT_GPUType  type,
int  vectorsize,
int  width,
int  height,
const void values 
)
overridevirtual

Implements UT_ComputeGPU.

void* RE_OGLComputeGPU::setArray2D ( const char *  name,
UT_GPUType  type,
int  vectorsize,
int  width,
int  height,
const void values1,
const void values2,
const void values3 = nullptr,
const void values4 = nullptr 
)
overridevirtual

Implements UT_ComputeGPU.

void RE_OGLComputeGPU::setConstant ( const char *  name,
UT_GPUType  type,
int  vectorsize,
const void value,
int  array_size = 1,
bool  global_var = false 
)
overridevirtual

Implements UT_ComputeGPU.

void RE_OGLComputeGPU::setLanguage ( UT_OGLComputeLanguage  lang)
overridevirtual

Implements UT_ComputeGPU.

void RE_OGLComputeGPU::setNumPasses ( int  passes)
overridevirtual

Implements UT_ComputeGPU.

void RE_OGLComputeGPU::setOutputArray ( const char *  name,
UT_GPUType  type,
int  vectorsize,
int  size,
void dest_data 
)
overridevirtual

Implements UT_ComputeGPU.

void RE_OGLComputeGPU::setOutputArray2D ( const char *  name,
UT_GPUType  type,
int  vectorsize,
int  width,
int  height,
void dest_data 
)
overridevirtual

Implements UT_ComputeGPU.

bool RE_OGLComputeGPU::setProgram ( const char *  name,
const char *  program,
bool  auto_generate_framework = true,
const char *  preamble_code = nullptr,
const char *  function_code = nullptr 
)
overridevirtual

Implements UT_ComputeGPU.

void* RE_OGLComputeGPU::useDeferredFetch ( )
overridevirtual

Implements UT_ComputeGPU.


The documentation for this class was generated from the following file: