Mitsuba Renderer  0.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
mitsuba::GLSync Class Reference

OpenGL-based GPUSync implementation. More...

#include <mitsuba/hw/glsync.h>

+ Inheritance diagram for mitsuba::GLSync:

Public Member Functions

 GLSync ()
 Allocate memory for a new synchronization object. More...
 
void init ()
 Create the synchronization object on the GL. More...
 
void wait ()
 Wait on the fence (blocking) More...
 
void enqueueWait ()
 Enqueue a wait command, but do not block. More...
 
void cleanup ()
 Remove the synchronization object. More...
 
virtual const ClassgetClass () const
 Retrieve this object's class. More...
 
- Public Member Functions inherited from mitsuba::GPUSync
 GPUSync ()
 Allocate memory for a new synchronization object. More...
 
std::string toString () const
 Return a string representation of this class. More...
 
- Public Member Functions inherited from Object
 Object ()
 Construct a new object. More...
 
int getRefCount () const
 Return the current reference count. More...
 
void incRef () const
 Increase the reference count of the object by one. More...
 
void decRef (bool autoDeallocate=true) const
 Decrease the reference count of the object and possibly deallocate it. More...
 

Static Public Attributes

static Classm_theClass
 
- Static Public Attributes inherited from mitsuba::GPUSync
static Classm_theClass
 
- Static Public Attributes inherited from Object
static Classm_theClass
 Pointer to the object's class descriptor. More...
 

Protected Member Functions

virtual ~GLSync ()
 Virtual destructor. More...
 
- Protected Member Functions inherited from mitsuba::GPUSync
virtual ~GPUSync ()
 Virtual destructor. More...
 
- Protected Member Functions inherited from Object
virtual ~Object ()
 Virtual private deconstructor. (Will only be called by ref) More...
 

Protected Attributes

GLsync m_sync
 

Additional Inherited Members

- Static Public Member Functions inherited from Object
static void staticInitialization ()
 Initializes the built-in reference count debugger (if enabled) More...
 
static void staticShutdown ()
 Free the memory taken by staticInitialization() More...
 

Detailed Description

OpenGL-based GPUSync implementation.

Constructor & Destructor Documentation

mitsuba::GLSync::GLSync ( )

Allocate memory for a new synchronization object.

virtual mitsuba::GLSync::~GLSync ( )
protectedvirtual

Virtual destructor.

Member Function Documentation

void mitsuba::GLSync::cleanup ( )
virtual

Remove the synchronization object.

Implements mitsuba::GPUSync.

void mitsuba::GLSync::enqueueWait ( )
virtual

Enqueue a wait command, but do not block.

Implements mitsuba::GPUSync.

virtual const Class* mitsuba::GLSync::getClass ( ) const
virtual

Retrieve this object's class.

Reimplemented from mitsuba::GPUSync.

void mitsuba::GLSync::init ( )
virtual

Create the synchronization object on the GL.

Implements mitsuba::GPUSync.

void mitsuba::GLSync::wait ( )
virtual

Wait on the fence (blocking)

Implements mitsuba::GPUSync.

Member Data Documentation

GLsync mitsuba::GLSync::m_sync
protected
Class* mitsuba::GLSync::m_theClass
static

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