AR Design
UBC EML collab with UBC SALA - visualizing IoT data in AR
HoloToolkit.Unity.GpuTiming Class Reference

Encapsulates access to GPU timing methods. More...

Static Public Member Functions

static double GetTime (string eventId)
 Gets the latest available sample time for the given event. More...
 
static bool BeginSample (string eventId)
 Begins sampling GPU time. More...
 
static void EndSample ()
 Ends the GPU sample currently in flight. More...
 

Detailed Description

Encapsulates access to GPU timing methods.

Definition at line 14 of file GpuTiming.cs.

Member Function Documentation

§ BeginSample()

static bool HoloToolkit.Unity.GpuTiming.BeginSample ( string  eventId)
static

Begins sampling GPU time.

Parameters
eventIdName of the event.
Returns
Returns true if a BeginSample with the same event name was last added.

Definition at line 48 of file GpuTiming.cs.

§ EndSample()

static void HoloToolkit.Unity.GpuTiming.EndSample ( )
static

Ends the GPU sample currently in flight.

Definition at line 78 of file GpuTiming.cs.

§ GetTime()

static double HoloToolkit.Unity.GpuTiming.GetTime ( string  eventId)
static

Gets the latest available sample time for the given event.

Parameters
eventIdName of the event.
Returns
Time in milliseconds.

Definition at line 33 of file GpuTiming.cs.


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