summaryrefslogtreecommitdiffstats
path: root/tools/gfx/cuda/cuda-context.h
blob: d1a53e4e90da84a59748eaa9d75a80f5f4667e7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// cuda-context.h
#pragma once
#include "cuda-base.h"

namespace gfx
{
#ifdef GFX_ENABLE_CUDA
using namespace Slang;

namespace cuda
{

class CUDAContext : public RefObject
{
public:
    CUcontext m_context = nullptr;
    ~CUDAContext() { cuCtxDestroy(m_context); }
};

} // namespace cuda
#endif
} // namespace gfx