HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_ComputeGPU Class Referenceabstract

#include <UT_ComputeGPU.h>

+ Inheritance diagram for UT_ComputeGPU:

Public Types

enum  UT_OGLComputeLanguage { OGL_GLSL }
 

Public Member Functions

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

Static Public Member Functions

static UT_ComputeGPUcreate ()
 
static void registerCreateFunc (UT_ComputeGPUCreateFunc create_func)
 Register a function for creating concrete UT_ComputeGPU objects. More...
 

Protected Member Functions

 UT_ComputeGPU ()
 

Detailed Description

Definition at line 69 of file UT_ComputeGPU.h.

Member Enumeration Documentation

Enumerator
OGL_GLSL 

Definition at line 74 of file UT_ComputeGPU.h.

Constructor & Destructor Documentation

virtual UT_ComputeGPU::~UT_ComputeGPU ( )
virtual
UT_ComputeGPU::UT_ComputeGPU ( )
protected

Member Function Documentation

virtual bool UT_ComputeGPU::compute ( UT_String errors,
bool  async_read = false 
)
pure virtual

Implemented in RE_OGLComputeGPU.

static UT_ComputeGPU* UT_ComputeGPU::create ( )
static

Create a new UT_ComputeGPU object. The caller takes ownership of the returned object and is responsible for deleting it.

virtual void UT_ComputeGPU::defineSymbol ( const char *  symbol,
const char *  value 
)
pure virtual

Implemented in RE_OGLComputeGPU.

virtual int UT_ComputeGPU::getDataByteSize ( UT_GPUType  type,
int  vectorsize,
int  xsize,
int  ysize = 1 
)
pure virtual

Implemented in RE_OGLComputeGPU.

virtual bool UT_ComputeGPU::getResults ( )
pure virtual

Implemented in RE_OGLComputeGPU.

virtual void UT_ComputeGPU::needBitOps ( bool  enable)
pure virtual

Implemented in RE_OGLComputeGPU.

virtual bool UT_ComputeGPU::needsBitOps ( ) const
pure virtual

Implemented in RE_OGLComputeGPU.

static void UT_ComputeGPU::registerCreateFunc ( UT_ComputeGPUCreateFunc  create_func)
static

Register a function for creating concrete UT_ComputeGPU objects.

virtual void* UT_ComputeGPU::setArray ( const char *  name,
UT_GPUType  type,
int  vectorsize,
int  size,
const void values 
)
pure virtual

Implemented in RE_OGLComputeGPU.

virtual void* UT_ComputeGPU::setArray ( const char *  name,
UT_GPUType  type,
int  vectorsize,
int  size,
const void values1,
const void values2,
const void values3 = 0,
const void values4 = 0 
)
pure virtual

Implemented in RE_OGLComputeGPU.

virtual void* UT_ComputeGPU::setArray2D ( const char *  name,
UT_GPUType  type,
int  vectorsize,
int  width,
int  height,
const void values 
)
pure virtual

Implemented in RE_OGLComputeGPU.

virtual void* UT_ComputeGPU::setArray2D ( const char *  name,
UT_GPUType  type,
int  vectorsize,
int  width,
int  height,
const void values1,
const void values2,
const void values3 = 0,
const void values4 = 0 
)
pure virtual

Implemented in RE_OGLComputeGPU.

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

Implemented in RE_OGLComputeGPU.

virtual void UT_ComputeGPU::setLanguage ( UT_OGLComputeLanguage  lang)
pure virtual

Implemented in RE_OGLComputeGPU.

virtual void UT_ComputeGPU::setNumPasses ( int  passes)
pure virtual

Implemented in RE_OGLComputeGPU.

virtual void UT_ComputeGPU::setOutputArray ( const char *  name,
UT_GPUType  type,
int  vectorsize,
int  size,
void dest_data 
)
pure virtual

Implemented in RE_OGLComputeGPU.

virtual void UT_ComputeGPU::setOutputArray2D ( const char *  name,
UT_GPUType  type,
int  vectorsize,
int  width,
int  height,
void dest_data 
)
pure virtual

Implemented in RE_OGLComputeGPU.

virtual bool UT_ComputeGPU::setProgram ( const char *  name,
const char *  program,
bool  auto_generate_framework = true,
const char *  preamble_code = 0,
const char *  function_code = 0 
)
pure virtual

Implemented in RE_OGLComputeGPU.

virtual void* UT_ComputeGPU::useDeferredFetch ( )
pure virtual

Implemented in RE_OGLComputeGPU.


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