VEX/VEX_VexOp.h File Reference

#include "VEX_API.h"
#include "VEX_VexTypes.h"

Go to the source code of this file.

Classes

class  VEX_VexOp
 Use this class to extend VEX by adding custom VEX functions. More...

Defines

#define VEX_OPTIMIZE_0   0
#define VEX_OPTIMIZE_1   1
#define VEX_OPTIMIZE_2   2

Typedefs

typedef void *(* VEX_VexOpInit )()
typedef void(* VEX_VexOpCallback )(int argc, void *argv[], void *data)
typedef void(* VEX_VexOpCleanup )(void *data)
 VEX operator cleanup callback. When called, it should deallocate the data.
typedef void(* VEX_VexOpCompleted )(void *data)

Functions

SYS_VISIBILITY_EXPORT void newVEXOp (void *)
 Function called in DSO to install new functions.


Define Documentation

#define VEX_OPTIMIZE_0   0

Perform no optimization on the VEX function

Warning:
this may impact performance severely.
Examples:
VEX/VEX_Ops.C.

Definition at line 111 of file VEX_VexOp.h.

#define VEX_OPTIMIZE_1   1

If the result of the function is unused, the function can be eliminated.

Examples:
VEX/VEX_Example.C, and VEX/VEX_Ops.C.

Definition at line 112 of file VEX_VexOp.h.

#define VEX_OPTIMIZE_2   2

Definition at line 113 of file VEX_VexOp.h.


Typedef Documentation

typedef void(* VEX_VexOpCallback)(int argc, void *argv[], void *data)

VEX operator evaluation callback. When called, the data returned by the VEX_VexOpInit function will be passed as the "data" argument.

Definition at line 80 of file VEX_VexOp.h.

typedef void(* VEX_VexOpCleanup)(void *data)

VEX operator cleanup callback. When called, it should deallocate the data.

Definition at line 82 of file VEX_VexOp.h.

typedef void(* VEX_VexOpCompleted)(void *data)

VEX operator completed callback. Called when a shader that evaluated a custom operator completes.

Definition at line 85 of file VEX_VexOp.h.

typedef void*(* VEX_VexOpInit)()

VEX operator initialization callback. When called, it should allocated and initialize custom state data.

Definition at line 77 of file VEX_VexOp.h.


Function Documentation

SYS_VISIBILITY_EXPORT void newVEXOp ( void *   ) 

Function called in DSO to install new functions.

Examples:
VEX/VEX_Example.C, VEX/VEX_Ops.C, and VEX/VEX_Sort.C.

Definition at line 114 of file VEX_Example.C.


Generated on Thu Jan 31 00:29:17 2013 for HDK by  doxygen 1.5.9