yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
ce6e946f6
master
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 : 16CUcontext m_context = nullptr ; 17 ~CUDAContext () {cuCtxDestroy (m_context ); } 18}; 19 20}// namespace cuda 21#endif 22}// namespace gfx