yum-mirror/slang

Making it easier to work with shaders

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

Ellie Hermaszewskaformatf65d756bf

master
594 B32 linesraw
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.
17    List<CUevent> m_events;
18
19    // The event that marks the starting point.
20    CUevent m_startEvent;
21
22    Result init(const IQueryPool::Desc& desc);
23
24    ~QueryPoolImpl();
25
26    virtual SLANG_NO_THROW Result SLANG_MCALL
27    getResult(GfxIndex queryIndex, GfxCount count, uint64_t* data) override;
28};
29
30} // namespace cuda
31#endif
32} // namespace gfx