| 36 | static const UINT64 QueryLatency = 9; |
| 37 | |
| 38 | struct ProfileData |
| 39 | { |
| 40 | ID3D11Query* DisjointQuery[QueryLatency]; |
| 41 | ID3D11Query* TimestampStartQuery[QueryLatency]; |
| 42 | ID3D11Query* TimestampEndQuery[QueryLatency]; |
| 43 | BOOL QueryStarted; |
| 44 | BOOL QueryFinished; |
| 45 | double lastValue; |
| 46 | |
| 47 | ProfileData() : QueryStarted(FALSE), QueryFinished(FALSE), lastValue(-1) { |
| 48 | for (UINT64 i = 0; i < QueryLatency; ++i) { |
| 49 | DisjointQuery[i] = nullptr; |
| 50 | TimestampStartQuery[i] = nullptr; |
| 51 | TimestampEndQuery[i] = nullptr; |
| 52 | } |
| 53 | } |
| 54 | }; |
| 55 | |
| 56 | typedef std::map<std::string, ProfileData> ProfileMap; |
| 57 |
nothing calls this directly
no outgoing calls
no test coverage detected