yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
12a846e8f
master
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{ 15SLANG_GFX_API_FUNC ; 16 17if (index < 0 || index + count > desc .count ) 18GFX_DIAGNOSE_ERROR ("index is out of bounds." ); 19return baseObject -> getResult (index ,count ,data ); 20} 21 22Result DebugQueryPool ::reset () 23{ 24SLANG_GFX_API_FUNC ; 25return baseObject -> reset (); 26} 27 28}// namespace debug 29}// namespace gfx