GFXFence Class Reference

#include <gfxFence.h>

Inheritance diagram for GFXFence:

Inheritance graph
[legend]
List of all members.

Public Types

 Unset
 The fence has not been set.
 Pending
 The fence has been set and has not been hit.
 Processed
 The fence has been processed.
 Unsupported
 A non-blocking query of fence status is not supported by the implementation.
enum  FenceStatus {
  Unset,
  Pending,
  Processed,
  Unsupported
}
 The states returned by getStatus(). More...

Public Member Functions

 GFXFence (GFXDevice *device)
virtual ~GFXFence ()
virtual void issue ()=0
 This method inserts the fence into the command buffer.
virtual FenceStatus getStatus () const =0
 This is a non-blocking call to get the status of the fence.
virtual void block ()=0
 This method will not return until the fence has been processed by the GPU.

Protected Attributes

GFXDevicemDevice

Member Enumeration Documentation

The states returned by getStatus().

Enumerator:
Unset  The fence has not been set.
Pending  The fence has been set and has not been hit.
Processed  The fence has been processed.
Unsupported  A non-blocking query of fence status is not supported by the implementation.


Constructor & Destructor Documentation

GFXFence::GFXFence ( GFXDevice device  )  [inline]

virtual GFXFence::~GFXFence (  )  [inline, virtual]


Member Function Documentation

virtual void GFXFence::issue (  )  [pure virtual]

This method inserts the fence into the command buffer.

Implemented in GFXD3D9QueryFence, GFXGeneralFence, and GFXGLAppleFence.

virtual FenceStatus GFXFence::getStatus (  )  const [pure virtual]

This is a non-blocking call to get the status of the fence.

See also:
GFXFence::FenceStatus

Implemented in GFXD3D9QueryFence, GFXGeneralFence, and GFXGLAppleFence.

virtual void GFXFence::block (  )  [pure virtual]

This method will not return until the fence has been processed by the GPU.

Implemented in GFXD3D9QueryFence, GFXGeneralFence, and GFXGLAppleFence.


Member Data Documentation