yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
f65d756bf
master
1// cuda-query.h 2#pragma once 3#include "cuda-base.h" 4 5namespace gfx 6{ 7#ifdef GFX_ENABLE_CUDA 8using namespace Slang ; 9 10namespace cuda 11{ 12 13class QueryPoolImpl :public QueryPoolBase 14{ 15public : 16// The event object for each query. Owned by the pool. 17List < CUevent > m_events ; 18 19// The event that marks the starting point. 20CUevent m_startEvent ; 21 22Result init (const IQueryPool ::Desc & desc ); 23 24 ~QueryPoolImpl (); 25 26virtual SLANG_NO_THROW Result SLANG_MCALL 27getResult (GfxIndex queryIndex ,GfxCount count ,uint64_t * data )override ; 28}; 29 30}// namespace cuda 31#endif 32}// namespace gfx