forked from GPUOpen-Tools/gpu_performance_api
-
Notifications
You must be signed in to change notification settings - Fork 1
/
GPACounterSchedulerDX11.h
37 lines (29 loc) · 1.4 KB
/
GPACounterSchedulerDX11.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//==============================================================================
// Copyright (c) 2016 Advanced Micro Devices, Inc. All rights reserved.
/// \author AMD Developer Tools Team
/// \file
/// \brief Base class to handle the scheduling of the D3D Query counters
//==============================================================================
#ifndef _GPA_COUNTER_SCHEDULER_DX11_H_
#define _GPA_COUNTER_SCHEDULER_DX11_H_
#include "GPACounterSchedulerBase.h"
/// Base class to handle the scheduling of the D3D Query counters
class GPA_CounterSchedulerDX11 : public GPA_CounterSchedulerBase
{
public:
/// Constructor
GPA_CounterSchedulerDX11();
/// \copydoc GPA_CounterSchedulerBase::EnableCounter
virtual GPA_Status EnableCounter(gpa_uint32 index);
/// \copydoc GPA_CounterSchedulerBase::DoDisableCounter
virtual GPA_Status DoDisableCounter(gpa_uint32 index);
/// \copydoc GPA_CounterSchedulerBase::DisableAllCounters
virtual void DisableAllCounters();
protected:
/// For DirectX 11, the preferred splitting algorithm is the consolidated one.
/// This keeps the overall number of passes down to a reasonable number, but splits the counters up
/// in a manner that allows them to be more consistent.
/// \return The splitting algorithm to use.
virtual GPACounterSplitterAlgorithm GetPreferredSplittingAlgorithm() const;
};
#endif //_GPA_COUNTER_SCHEDULER_DX11_H_