yum-mirror/slang

Making it easier to work with shaders

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

lucy96chenSplit render-cuda.cpp into smaller files (#2334)ce6e946f6

master
316 B22 linesraw
1// cuda-context.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 CUDAContext : public RefObject
14{
15public:
16    CUcontext m_context = nullptr;
17    ~CUDAContext() { cuCtxDestroy(m_context); }
18};
19
20} // namespace cuda
21#endif
22} // namespace gfx