diff options
| author | lucy96chen <47800040+lucy96chen@users.noreply.github.com> | 2022-08-04 16:59:28 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-04 16:59:28 -0700 |
| commit | 12a846e8facf090aaeb68fcabf55867f5eaed747 (patch) | |
| tree | cc7c70c447200c1b45f20efc47e43e17828ec84d /tools/gfx/debug-layer/debug-query.cpp | |
| parent | 11b29eff99910d55a54658b8a1d053cc4ec076fc (diff) | |
Split debug-layer into smaller files (#2344)
* checkpoint commit
* debug-layer split, does not compile
* Almost compiles, rebasing before making any further changes
* everything compiles and passes tests locally
* Added tools/gfx/debug-layer to premake and ran premake
Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to 'tools/gfx/debug-layer/debug-query.cpp')
| -rw-r--r-- | tools/gfx/debug-layer/debug-query.cpp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/tools/gfx/debug-layer/debug-query.cpp b/tools/gfx/debug-layer/debug-query.cpp new file mode 100644 index 000000000..44e0ed116 --- /dev/null +++ b/tools/gfx/debug-layer/debug-query.cpp @@ -0,0 +1,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 |
