Add support for disabling Vulkan timer queries per-platform via define

This commit is contained in:
Wojtek Figat
2021-07-27 16:38:52 +02:00
parent 2050429d6c
commit a713899a36
5 changed files with 46 additions and 25 deletions

View File

@@ -68,28 +68,8 @@ public:
// [GPUTimerQuery]
void Begin() override;
void End() override;
bool HasResult() override
{
if (!_endCalled)
return false;
if (_hasResult)
return true;
return TryGetResult();
}
float GetResult() override
{
if (_hasResult)
{
return _timeDelta;
}
TryGetResult();
return _timeDelta;
}
bool HasResult() override;
float GetResult() override;
protected: