The Dirtchamber
A mixed reality testing environment for real-time global illumination algorithms
Public Member Functions | List of all members
dune::profile_query Class Reference

A GPU profiler. More...

#include <d3d_tools.h>

Public Member Functions

void create (ID3D11Device *device)
 Create a profile_query object.
 
void destroy ()
 Destroy a profile_query object and free its resources.
 
void begin (ID3D11DeviceContext *context)
 Start a GPU time query.
 
void end ()
 Stop measuring time.
 
float result ()
 Stop measuring time and return the result in miliseconds.
 

Detailed Description

A GPU profiler.

This class encapsulates ID3D11Query objects to capture the time spent on completing a portion of a GPU command buffer.


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