GFXFence

Engine/source/gfx/gfxFence.h

More...

Public Types

enum
FenceStatus {
  Unset 
  Pending 
  Processed 
  Unsupported 
}

The states returned by getStatus()

Protected Attributes

Public Functions

GFXFence(GFXDevice * device)

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

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

This method inserts the fence into the command buffer.

Detailed Description

Public Types

FenceStatus

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.

The states returned by getStatus()

Protected Attributes

GFXDevice * mDevice 

Public Functions

GFXFence(GFXDevice * device)

~GFXFence()

block()

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

Reimplemented by: GFXD3D11QueryFence, GFXGeneralFence, GFXGLAppleFence

getStatus()

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

Reimplemented by: GFXD3D11QueryFence, GFXGeneralFence, GFXGLAppleFence

issue()

This method inserts the fence into the command buffer.

Reimplemented by: GFXD3D11QueryFence, GFXGeneralFence, GFXGLAppleFence