yum-mirror/slang

Making it easier to work with shaders

git clone https://git.yummers.dev/yum-mirror/slang

lucy96chenSplit debug-layer into smaller files (#2344)12a846e8f

master
542 B29 linesraw
1// debug-query.cpp
2#include "debug-query.h"
3
4#include "debug-helper-functions.h"
5
6namespace gfx
7{
8using namespace Slang;
9
10namespace debug
11{
12
13Result DebugQueryPool::getResult(GfxIndex index, GfxCount count, uint64_t* data)
14{
15    SLANG_GFX_API_FUNC;
16
17    if (index < 0 || index + count > desc.count)
18        GFX_DIAGNOSE_ERROR("index is out of bounds.");
19    return baseObject->getResult(index, count, data);
20}
21
22Result DebugQueryPool::reset()
23{
24    SLANG_GFX_API_FUNC;
25    return baseObject->reset();
26}
27
28} // namespace debug
29} // namespace gfx