summaryrefslogtreecommitdiffstats
path: root/tools/gfx/debug-layer/debug-query.cpp
blob: 44e0ed116cba8539ec425b328d9dc11612029851 (plain)
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
// debug-query.cpp
#include "debug-query.h"

#include "debug-helper-functions.h"

namespace gfx
{
using namespace Slang;

namespace debug
{

Result DebugQueryPool::getResult(GfxIndex index, GfxCount count, uint64_t* data)
{
    SLANG_GFX_API_FUNC;

    if (index < 0 || index + count > desc.count)
        GFX_DIAGNOSE_ERROR("index is out of bounds.");
    return baseObject->getResult(index, count, data);
}

Result DebugQueryPool::reset()
{
    SLANG_GFX_API_FUNC;
    return baseObject->reset();
}

} // namespace debug
} // namespace gfx